ASP.NET MVC在Controller中,把JsonResult转为JSON字符串

作者: 吴杰 分类: 编程 发布时间: 2017-12-23 12:30

ASP.NET MVC在Controller中,把JsonResult转为JSON字符串

string json = new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(jsonResult.Data);
Response.Write(json);