I have a json string in an action of MVC controller. I want to send it to view as a JSON object. How can I solve this?
public JsonResult Json()
{
... some code here ...
string jsonString = "{\"Success\":true, \"Msg\":null}";
// what should I do instead of assigning jsonString to Data.
return new JsonResult() { Data = jsonString, JsonRequestBehavior = JsonRequestBehavior.AllowGet };
}