title: How can I deserialize JSON into this POCO class?
body: <p>ERROR:</p>
  
  <p><strong>Cannot implicitly convert type 'UserItem' to 'RootObject'</strong>   </p>
  
  <p>How can I deserialize JSON into this POCO class?</p>
  
  <p>I'm simply trying to deserilize json data into C# custom poco class as shown below and here is what i have done so far;</p>
  
  <pre><code>public static UserItem DownloadJSONString(string urlJson)
  {
      using (WebClient wc = new WebClient())
      {
          var json = wc.DownloadString(urlJson);
          UserItem userItems = JsonConvert.DeserializeObject&lt;RootObject&gt;(json);
  
          return userItems;
      }            
  }
  </code></pre>
  
  <p>I'm kind of stuck here</p>
  
  <p><strong>here my Json:</strong></p>
  
  <pre><code>{
      "meta":
      {
          "status":200,
          "resultSet":
          {
              "id":"05"
          },
          "pagination":
          {
              "count":2,
              "pageNum":1,
              "pageSize":2
          }
      },
      "results":   
      {
          "id":0,
          "name":
          "title",
          "items":
          [
              {
                  "id":0,
                  "name":"English",
                  "title":"English",
              },
              {
                  "id":0,
                  "name":"Spanish",
                  "title":"Spanish;",
              }
          ]
      }
  }
  </code></pre>
  
  <p><strong>here is my json object (generate from json to c# class)</strong></p>
  
  <pre><code>public class ResultSet
  {
      public string id { get; set; }
  }
  
  public class Pagination
  {
      public int count { get; set; }
      public int pageNum { get; set; }
      public int pageSize { get; set; }
  }
  
  public class Meta
  {
      public int status { get; set; }
      public ResultSet resultSet { get; set; }
      public Pagination pagination { get; set; }
  }
  
  public class Item
  {
      public int id { get; set; }
      public string name { get; set; }
      public string title { get; set; }
  }
  
  public class Results
  {
      public int id { get; set; }
      public string name { get; set; }
      public List&lt;Item&gt; items { get; set; }
  }
  
  public class RootObject
  {
      public Meta meta { get; set; }
      public Results results { get; set; }
  }
  </code></pre>
  
  <p><strong>Here is my simple <code>UserItem</code> POCO class</strong></p>
  
  <pre><code>public class UserItem 
  {
      public int id { get; set; }
      public string name { get; set; }
      public string title { get; set; }
  }
  </code></pre>