title: retrieve item from a json file c#
body: <pre><code>{
      "_id": "underscore",
      "_rev": "136-824a0ef7436f808755f0712c3acc825f",
      "name": "underscore",
      "description": "JavaScript's functional programming helper library.",
      "dist-tags": {},
      "versions": {
          "1.0.3": {
              "name": "xxx",
              "description": "xxx"
          },
          "1.0.4": {},
          "1.1.0": {}
      }
  }
  </code></pre>
  
  <p>I would like to retrieve the latest version(1.1.0) from the json file. However, it always gives out me errors of "can not deserialize json object into type RootObject</p>
  
  <p>Here is my class</p>
  
  <pre><code>public class versions
  {
      public string name { get; set; }
      public string description { get; set; }
  }
  
  public class RootObject
  {
      public List&lt;versions&gt; vs { get; set; }
  }
  </code></pre>
  
  <p>And here is where I used it</p>
  
  <pre><code>RootObject[] dataset = JsonConvert.DeserializeObject&lt;RootObject[]&gt;(json);
  </code></pre>
  
  <p>Any idea. Many thankx</p>
  
  <h2><strong>Update:</strong></h2>
  
  <p>I have updated the JSON file format, but some problem..</p>