1. 程式人生 > >mvc大對象json傳輸報錯

mvc大對象json傳輸報錯

script json big javascrip col action length cati return

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

mvc大對象json傳輸報錯