title: What parameter does my .NET MVC 2 controller need for a JSON Post
body: <p>I can't figure out what parameters or type to use in my controller when accepting a POST from an .ajax jquery call which is using Json.</p>
  
  <p>The JSON looks something like this (I just wrote this so it might not be valid, that's not the problem)</p>
  
  <pre><code>[{"paths":[[{"a":294,"b":174,"c":1297178158028}]]
  </code></pre>
  
  <p>My controller:</p>
  
  <pre><code>[HttpPost]
  public void SaveDrawData() {
  }
  
  $.ajax('../Home/SaveDrawData', { type: 'POST', contentType: 'application/json', dataType: 'json', processData: false, cache: false, data: serial, success: function() { var saved = $('&lt;div id="saved"&gt;Saved!&lt;/div&gt;')
                      .appendTo('body')
          }
  </code></pre>
  
  <p>I know for sure that the SaveDrawData is being hit by setting a breakpoint. </p>
  
  <p>I checked firebug, and the JSON post lists "paths".  </p>
  
  <p>How does my controller access that data though? What type and/or variable name do I need to put there?</p>
  
  <p>Thanks so much!</p>