What are the differences bewteen maxJsonLength and MaxJsonDeserializerMembers?
<p>We can set the max json length in the web.config in two ways:</p>

<p>1: in bytes</p>

<pre><code>&lt;configuration&gt;
  &lt;system.web.extensions&gt;
    &lt;scripting&gt;
      &lt;webServices&gt;
        &lt;jsonSerialization maxJsonLength="500000"&gt;
        &lt;/jsonSerialization&gt;
      &lt;/webServices&gt;
    &lt;/scripting&gt;
  &lt;/system.web.extensions&gt;
&lt;/configuration&gt;
</code></pre>

<p>2: in the app settings. The max entries in the json object (this case 150,000)</p>

<pre><code>&lt;add key="aspnet:MaxJsonDeserializerMembers" value="150000" /&gt;
</code></pre>

<p>I am wondering, when to use which one? Do I always need both? Are those two working with each other some way?</p>