My mvc page returns json by using the function Json(mycustomclass) to return a JsonResult object.
This works just fine except, I need to wrap the json in a callback so that jQuery can use it.
I want it like this:
jsonp1246168411282({"myjson":"some values"})
but I am getting this: {"myjson":"some values"}
Is there any way I can 'wrap' the C# JsonResult with brackets and the jquery callback?
Thanks
The Lorax