mvc大对象json传输报错

public ActionResult GetLargeJsonResult()
{
  return new ContentResult
    {
        Content = new JavaScriptSerializer { MaxJsonLength = Int32.MaxValue }.Serialize(myBigdata),
        ContentType = "application/json"
    };
}

 

posted @ 2018-07-24 15:10  以沫浅夏  阅读(278)  评论(0编辑  收藏  举报