JSON, ASP.NET MVC - MaxJsonLength exception

前端 未结 4 1932
时光取名叫无心
时光取名叫无心 2021-01-18 05:25

I am just trying to shift some comma separated numbers to the frontend:

[AcceptVerbs(HttpVerbs.Get)]
public JsonResult GetSquares()
{
 var result = new JsonR         


        
4条回答
  •  一整个雨季
    2021-01-18 06:08

    See explaination and LargeJsonResult class at http://brianreiter.org/2011/01/03/custom-jsonresult-class-for-asp-net-mvc-to-avoid-maxjsonlength-exceeded-exception/

提交回复
热议问题