解决MVC中JSON字符长度超出限制的异常
解决方法如下:
1 <configuration> 2 <system.web.extensions> 3 <scripting> 4 <webServices> 5 <jsonSerialization maxJsonLength="2147483644"/> 6 </webServices> 7 </scripting> 8 </system.web.extensions> 9 </configuration>
引用:http://stackoverflow.com/questions/4155014/json-asp-net-mvc-maxjsonlength-exception
Better not to ignore the past but learn from it instead. Otherwise, history has a way of repeating itself.