public ActionResult Json()
{
... some code here ...
string jsonString = "{\"Success\":true, \"Msg\":null}";
return Content(jsonString, "application/json");
}
Но я бы порекомендовал использовать объекты вместо строк:
public ActionResult Json()
{
... some code here ...
return Json(
new
{
Success = true,
Msg = (string)null
},
JsonRequestBehavior.AllowGet
);
}