We can set the max json length in the web.config in two ways:
1: in bytes
<configuration>
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="500000">
</jsonSerialization>
</webServices>
</scripting>
</system.web.extensions>
</configuration>
2: in the app settings. The max entries in the json object (this case 150,000)
<add key="aspnet:MaxJsonDeserializerMembers" value="150000" />
I am wondering, when to use which one? Do I always need both? Are those two working with each other some way?