I have line of c# code in ASP.NET MVC view that
string json = new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(Model);
If I debug this string is
"{\"Age\":14}"
So when I assign this string to my javascript code, it fails
JSON.parse('@json');
The message is
Uncaught SyntaxError: Unexpected token &
How do I get around this?