Is there a limit on how much JSON can hold

bruce
bruce
Member
40 Points
10 Posts

Hi,

Is there a limit on how much JSON can hold?

Views: 8844
Total Answered: 1
Total Marked As Answer: 1
Posted On: 01-Aug-2015 09:19

Share:   fb twitter linkedin
Answers
Brian
Brian
Moderator
2232 Points
14 Posts
         

Hi Bruce,

JSON is similar to other data formats like XML, - if you want to transmit more data, you just send more data. There's no essential size limitation to the overall JSON request itself. Any limitation would be set by the server parsing the JSON request. (For instance, ASP.NET has the "MaxJsonLength" property of the serializer.)

You can set MaxJsonLenth property in web.config file as:

<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="2147483647"></jsonSerialization>
</webServices>
</scripting>
</system.web.extensions>
Posted On: 01-Aug-2015 23:39
 Log In to Chat