title: JsonValueProviderFactory throws "request too large"
body: <p>I'm getting an exception that the JSON request was too large to be deserialized.</p>
  
  <p>It's coming from the JsonValueProviderFactory....   </p>
  
  <p>The MVC App currently has a custom model binder using Json.Net which has no problem deserializing the json data.  However I'm assuming the default JSON value provider is tripping up? or has some weird limit built into it?</p>
  
  <p>It may be be to do with the latest release of MVC4 as when using the previous build of MVC4 there were no problems with large amounts of JSON.   </p>
  
  <p>So, is there a way to change the setting s of the actual json value binder?</p>
  
  <p>going by <a href="http://haacked.com/archive/2011/06/30/whatrsquos-the-difference-between-a-value-provider-and-model-binder.aspx" rel="noreferrer">http://haacked.com/archive/2011/06/30/whatrsquos-the-difference-between-a-value-provider-and-model-binder.aspx</a></p>
  
  <p>I get the impression it's some custom thing that turns it into a dictionary....I can't find any source code related to it or if there are any settings I can change?</p>
  
  <p>Or is there an alternative ValueBinder I could use?</p>
  
  <p>or any other options?</p>
  
  <pre><code>Server Error in '/' Application.
  The JSON request was too large to be deserialized.
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
  
  Exception Details: System.InvalidOperationException: The JSON request was too large to be deserialized.
  
  Source Error:
  
  An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
  
  Stack Trace:
  
  [InvalidOperationException: The JSON request was too large to be deserialized.]
     System.Web.Mvc.EntryLimitedDictionary.Add(String key, Object value) +464621
     System.Web.Mvc.JsonValueProviderFactory.AddToBackingStore(EntryLimitedDictionary backingStore, String prefix, Object value) +413
     System.Web.Mvc.JsonValueProviderFactory.AddToBackingStore(EntryLimitedDictionary backingStore, String prefix, Object value) +164
     System.Web.Mvc.JsonValueProviderFactory.AddToBackingStore(EntryLimitedDictionary backingStore, String prefix, Object value) +164
     System.Web.Mvc.JsonValueProviderFactory.AddToBackingStore(EntryLimitedDictionary backingStore, String prefix, Object value) +373
     System.Web.Mvc.JsonValueProviderFactory.AddToBackingStore(EntryLimitedDictionary backingStore, String prefix, Object value) +164
     System.Web.Mvc.JsonValueProviderFactory.GetValueProvider(ControllerContext controllerContext) +116
     System.Web.Mvc.&lt;&gt;c__DisplayClassc.&lt;GetValueProvider&gt;b__7(ValueProviderFactory factory) +34
  
         System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +151
     System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +177
  </code></pre>