title: Difficulty binding mvc model to JSON post
body: <p>I have the following JSON Request body (copied from ie10 Admin Panel Network capture)</p>
  
  <pre><code>{"FirstName":"James","LastName":"Jones","Email":"jJones@system.net"}
  </code></pre>
  
  <p>My controller is as follows (the x variable is to break on):</p>
  
  <pre><code>[HttpPost]
  public void EditPerson(PersonUpdateViewModel person)
  {
      int x = 0;
  }
  </code></pre>
  
  <p>My ViewModel is as follows:</p>
  
  <pre><code>public class PersonUpdateViewModel
  {
      public string FirstName { get; set; }
      public string LastName { get; set; }
      public string Email { get; set; }
  }
  </code></pre>
  
  <p>The EditPerson Action is reached, I break on the x variable, but all of the properties in the person variable are null, does anyone have any hints for what I might be doing wrong? At this point I would even be ok accepting the raw JSON string and parsing from there but I can't get any parameter into the action method.</p>
  
  <p>javascript function I am posting from by request:</p>
  
  <pre><code>var submitEdit2 = function () {
      var editables = $('.editable')
      var person = new Object();
      for (var i = 0; i &lt; editables.length; i++) {
          var editable = editables[i];
          person[editable.name] = editable.value;
      }
      var jform = JSON.stringify(person);
      $.post('/Person/EditPerson', jform, null, 'json');
  }
  </code></pre>