JSON序列化的最大长度

时间:2017-11-14 14:42:45

标签: c# asp.net-mvc json-serialization

在ASP.NET MVC中,我可以超越JSON的最大长度吗?

var jsonResult = Json(data, JsonRequestBehavior.AllowGet);
jsonResult.MaxJsonLength = int.MaxValue;
return jsonResult;

我的数据大于最大值。如果不是,我该如何将数据发送给方法的调用者?

0 个答案:

没有答案
相关问题