title: JSON Parsing C# model
body: <p>I cannot seem to parse through some json to get it to a model. </p>
  
  <p>The JSON:</p>
  
  <pre><code>{
      "status":"ok",
      "count":100,
      "data":[
          {"nickname":"God","id":null,"account_id":1000076613},
          {"nickname":"god0","id":null,"account_id":1005460397},
          {"nickname":"god1father","id":null,"account_id":1002495621},
          {"nickname":"God1Hand","id":null,"account_id":1003183995}]
  }
  </code></pre>
  
  <p>My model:</p>
  
  <pre><code>public class UserModel
  {
      public List&lt;User&gt; Users;
  }
  
  public class User
  {
  
      public int AccountId { get; set; }
  
      public string Nickname { get; set; }
  
      public string Id { get; set; }
  
  }
  </code></pre>
  
  <p>My Class:</p>
  
  <pre><code>var client = new HttpClient();
  var task = await client.GetAsync(APIWebAddress);
  var jsonstring = await task.Content.ReadAsStringAsync();
  if (jsonstring == null) return null;
  var serializer = new JavaScriptSerializer();
  UserModel model = serializer.Deserialize&lt;UserModel&gt;(jsonstring);
  </code></pre>
  
  <p><strong>The problem I am having is with the serializer. It does not return the model correctly causing me to get a null reference exception later when I try to look at the data. I have tried using the JavaScriptSerializer and the Json.Net deserializer.</strong></p>