[ACCEPTED]-JSON.net Serialize C# object to JSON Issue-json.net
Accepted answer
Your json string is being HTML encoded. Since 3 you're rendering the json in your view, you 2 can use the @Html.Raw()
helper to prevent it from being 1 encoded.
var data = { json : "@Html.Raw(JsonConvert.SerializeObject(Model))" };
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.