title: How to deserialize json with object name
body: <p>I'm not really sure how to phrase the problem but, I have the following json:</p>
  
  <pre><code>{
    "person": {
      "first_name": "John",
      "gender": "M",
      "last_name": "Doe"
    }
  }
  </code></pre>
  
  <p>And deserializing using json.net/javascriptserializer(asp.net) I have the following test code:</p>
  
  <pre><code>public class Person 
  {
      public string first_name { get; set; }
      public string last_name { get; set; }
      public string gender { get; set; }
  }
  
  
  [Test]
  public void TestDeserialize() 
  {
      string json = @"{""person"":{""first_name"":""John"",""gender"":""M"",""last_name"":""Doe""}}";
  
      var serializer = new JavaScriptSerializer(); // asp.net mvc (de)serializer
  
      Person doe = serializer.Deserialize&lt;Person&gt;(json);
      Person doe1 = JsonConvert.DeserializeObject&lt;Person&gt;(json); // json.net deserializer
  
      Assert.AreEqual("John", doe.first_name);
      Assert.AreEqual("John", doe1.first_name);  
  }
  </code></pre>
  
  <p>The test method fails, because both are null. Anything wrong with my code to deserialize?</p>