> ## Content Index
> Fetch the complete content index at: https://blog.aunlead.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Ajax response size limitation
- URL: https://blog.aunlead.com/ajax-response-size-limitation/
- Published: 2010-01-20T02:01:00.000Z
- Updated: 2021-01-20T11:33:50.000Z
- Author: Rajat Nair
- Tags: Asp.net, Troubleshooting, #Import 2026-09-22 19:54

In a recent project I worked on, we had an interesting experience with a limitation on the data returned by a ajax response, while using jQuery. We found that around 350 rows of data was returned by our web method, out of the 500+ rows. We initially thought the limitation was with jQuery but later found out it was with ASP.Net

Thankfully the solution to this issue was quite simple – in the web.config, the max JSON length had to be specified -

```xml
<system.web.extensions>
  <scripting>
      <webServices>
        <jsonSerialization maxJsonLength="x">
        </jsonSerialization>
      </webServices>
  </scripting>
</system.web.extensions>

```