How can I read C# dictionary to Javascript in MVC3 without Razor? I can do this fine with newer MVC with
var texts = @Html.Raw(JsonConvert.SerializeObject(Model.TextDict));
But my older project does not recognize Jsoncovert. I tried with:
var texts = <% Html.Raw(Json.Encode(Model.TextDict)); %>
But here the texts is undefined.
JsonConvert.SerializeObject.