title: Using Gson to parse Json array and object with no name
body: <p>I know there are many JSON with GSON questions but none of them relate to me directly. My JSON is formatted differently.</p>
  
  <p>I have a JSON data I want to parse using GSON which looks like the following:</p>
  
  <pre><code>[
     {
      "foo":"1",
      "bar":[ { "_id":"bar1"} ],
      "too":["mall", "park"]
     }
  ]
  </code></pre>
  
  <p>And I have the model Classes:</p>
  
  <p><strong>ItemArray Class</strong></p>
  
  <pre><code>public class ItemArray
  {
     List&lt;Item&gt; itemArray;
  
     //Get set here
  }
  </code></pre>
  
  <p><strong>Item Class</strong></p>
  
  <pre><code>public class Item
  {
     String foo;
     List&lt;Bar&gt; bar;
     List&lt;String&gt; too;
  
     //Get set here
  }
  </code></pre>
  
  <p><strong>Bar Class</strong></p>
  
  <pre><code>public class Bar
  {
     String id;
  
     //Get set here
  }
  </code></pre>
  
  <p>Heres the question. Is the JSON in the correct format? If so, are the model classes in the correct format?</p>
  
  <p>If not, please shove me in the right direction. Thank you in advance!</p>
  
  <p>PS. I can modify the JSON data format if need be.</p>