I am trying to serialize my linq to JSON. My issue is Json result wrapped in pre tag - how to get value of it. The answer is not what I am looking for though. Here are my code Controller
return Json(regionBoudaries, JsonRequestBehavior.AllowGet);
I see that my JSON string is written in the page Now I am writing something like something like
View
$(document).ready(function () {
initialize();
process(a_variable);
}
How can I set the a_variable the value of the JSon returned from controller.
Please help me out. Thank you in advance