Ajax response size limitation

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 -

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