[英]How to increase maximum of json response upto int64
I want to set Json response upto int64
. 我想将Json响应设置为
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.
使用JSON JavaScriptSerializer进行序列化或反序列化时出错。 The length of the string exceeds the value set on the maxJsonLength property.
字符串的长度超过了在maxJsonLength属性上设置的值。
使用stringbuilder手动创建jsonData而不进行序列化。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.