简体   繁体   中英

How to increase maximum of json response upto int64

I want to set Json response upto int64 . Here is my code.

System.Web.Script.Serialization.JavaScriptSerializer serializer = new System.Web.Script.Serialization.JavaScriptSerializer();
 serializer.MaxJsonLength = Int64.MaxValue;

I am getting an error:

Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.

使用stringbuilder手动创建jsonData而不进行序列化。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM