title: Deserialize a json container array
body: <p>The data I am trying to Deserialize is exacly like this json in this post> </p>
  
  <p><a href="https://stackoverflow.com/questions/13553584/deserialize-json-facebook-feed-using-gson">Deserialize JSON Facebook feed using Gson</a> , Only with more objects, inside the container.. and i'm not using "Gson"</p>
  
  <p>I think some of the objects even have their own containers nested somewhere, but that is not the issue at present, the main issue is that I am having problems deserializing into the following class..</p>
  
  <pre><code>public class Rootobject
  {
      public int found { get; set; }
      public Post[] posts { get; set; }
      public Meta meta { get; set; }
  }
  </code></pre>
  
  <p>I understand that the way the json from the API is layed out, it some sort of array, in the Json.net docs, they call it a DataSet.. I am using Json.Net</p>
  
  <p>my most recent attempt to deserialize is;</p>
  
  <pre><code>List&lt;Rootobject&gt; data = JsonConvert.DeserializeObject&lt;List&lt;Rootobject&gt;&gt;(stringData);
  </code></pre>
  
  <p>But still data is null and I get;</p>
  
  <p>Additional information: </p>
  
  <blockquote>
    <p>Cannot deserialize the current JSON object (e.g. {"name":"value"})
    into type
    'System.Collections.Generic.List`1[WebApplication17.Models.Rootobject]'
    because the type requires a JSON array (e.g. [1,2,3]) to deserialize
    correctly.</p>
  </blockquote>
  
  <p>perhaps LINQ to JSON is the way to go not sure as yet.. any suggestions? </p>