Your json string is being HTML encoded. Since you’re rendering the json in your view, you can use the @Html.Raw()
helper to prevent it from being encoded.
var data = { json : "@Html.Raw(JsonConvert.SerializeObject(Model))" };
Your json string is being HTML encoded. Since you’re rendering the json in your view, you can use the @Html.Raw()
helper to prevent it from being encoded.
var data = { json : "@Html.Raw(JsonConvert.SerializeObject(Model))" };