1
我在MVC控制器的操作中有一个json字符串。我想发送它作为JSON对象查看。我该如何解决这个问题?如何发送json字符串以查看json对象?
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 };
}