2012-07-23

Specify the Maximum length for JSON response

By adding the following part to the web.config file, you can specify the maximum length for a JSON response

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

No comments: