title: Getting JSON from request body into a custom model binder with WebAPI
body: <p>I've been implementing a custom model binder to handle the data returned from the datatables.net jQuery plugin but am having trouble actually getting to the data as it is being passed back in the request body and my <code>ModelBindingContext</code> only seems to have a <code>ValueProvider</code> for the query string.</p>
  
  <p>Currently my controller method signature looks like this:</p>
  
  <pre><code>[HttpPost]
  public DataTablesResult GetTableData([ModelBinder(typeof(MyCustomModelBinder))] DataTablesInput input)
  </code></pre>
  
  <p>which is getting data from a simple <code>$.post()</code>.</p>
  
  <p>I've tried adding a <code>FromBody</code> attribute to the <code>input</code> parameter, but that seems to stop the custom model binder being called at all.</p>
  
  <p>How do I get my model binder to recognise data in the request body, or if that's not possible, how do I move my posted data into the query string (I'd like to not do this!)?</p>