mvc大对象json传输报错

public ActionResult GetLargeJsonResult()
{
  return new ContentResult
    {
        Content = new JavaScriptSerializer { MaxJsonLength = Int32.MaxValue }.Serialize(myBigdata),
        ContentType = "application/json"
    };
}
原文地址:https://www.cnblogs.com/liyangLife/p/9360091.html