title: Deserialize json object list with newton in c#
body: <p>I have a json string that i am trying to deserialize into an object list using Newton. But it gives the </p>
  
  <blockquote>
    <p>error Cannot deserialize the current JSON object (e.g.
    {"name":"value"}) into type 'System.Collections.Generic.List</p>
  </blockquote>
  
  <p>The format of the json string is.</p>
  
  <pre><code> [ { "key": "1", "value": "Package1" }, { "key": "some name", "value": "Package2" } ]
  </code></pre>
  
  <p>the Model is defined as </p>
  
  <pre><code>public class RootObject
  {
      public string key { get; set; }
      public string value { get; set; }
  }
  </code></pre>
  
  <p>And i'm using the following method to deserialize it, where json is the string listed above.</p>
  
  <pre><code>var resultList = JsonConvert.DeserializeObject&lt;List&lt;RootObject&gt;&gt;(json);
  </code></pre>
  
  <p>I'm not sure where i'm going wrong here, any help would be appreciated.</p>