I’m guessing we are talking about ASP.NET AJAX here, right? If this is the case then you can set the limit in the web.config with something like this:
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="500000" />
</webServices>
</scripting>
</system.web.extensions>