How to increase JSON response length in ASP.Net
Introduction:
In this article, I will explain how to increase JSON response length in ASP.Net.
Description:
In previous articles, I explained the basics of JSON. Now I will tell how to increase JSON response length in ASP.Net.
Open web.config
Add the following lines in <configuration>
block
<configuration>
.
.
.
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="20971520"/>
<!-- 20971520 = 20MB-->
</webServices>
</scripting>
</system.web.extensions>
</configuration>
Here it will return up to 20MB of data.