title: How do you post a JSON file to an ASP.NET MVC Action?
body: <p>My iphone client posts the following json to my mvc service.
  When posting data from html form it automatically converts form data to UserModel and passes the object to my Create method, but when I send the JSON string in the body of my request from iphone it comes back as null. </p>
  
  <p>What would be the cleanest solution to do the conversion from JSON to Object.</p>
  
  <p><strong>I rather not create multiple methods for different clients, so I'm trying to get the same method to work on iphone, and mvc client.</strong></p>
  
  <p>Body of my request:</p>
  
  <pre><code>{
     "firstName" : "Some Name",
     "lastName" : "Some Last Name",
     "age" : "age"
  }
  </code></pre>
  
  <p>My Model and Action Result</p>
  
  <pre><code>public class UserModel
  {
     public int Id { get; set; }
     public string FirstName { get; set; }
     public string LastName { get; set; }
     public int Age { get; set; }
  }
  
  [HttpPost]
  public Create ActionResult(UserModel user)
  {
     // user is null
     userStorage.create(user);
     return SuccessResultForModel(user);
  }
  </code></pre>