Using Visual Studio 2012, on a Razor view page, in the JavaScript section, I am getting what I think is a battle between Razor syntax vs JavaScript syntax. In particular, th
This worked for me:
var customer = @Html.Raw(ViewBag.CustomerJSON + ";")