.net MVC 使用 JSON JavaScriptSerializer 进行序列化或反序列化时出错,字符串的长度超过了为 maxJsonLength 属性设置的值
在.net mvc的controller中,方法返回JsonResult,一般我们这么写:
1
2
3
4
5
6
[HttpPost]
public JsonResult QueryFeature(string url, string whereClause)
{
string str="";
return Json(str);
}
此时如果str过长,就会报“使用 JSON JavaScr...
原创
2019-07-29 15:18:57 ·
732 阅读 ·
0 评论