Get object list with lists from JSON with JSON.Simple
<p>I have a JSON array with arrays inside. How can i Parse this using Json.simple.</p>

<p>JSON Object example:</p>

<pre><code>[  
   {  
      "ID":"1",
      "Objects":[  
         {  
            "ObjectID":"5"
         },
         {  
            "ObjectID":"9"
         }
      ]
   },
   {  
      "ID":"2",
      "Objects":[  
         {  
            "ObjectID":"99"
         },
         {  
            "ObjectID":"11"
         }
      ]
   }
]
</code></pre>

<p>Class Foo</p>

<pre><code>public int ID;
public List&lt;Obj&gt; Objects;
</code></pre>

<p>Class Obj</p>

<pre><code>public int ObjectID;
</code></pre>

<p>so i want a list of Foo but in foo the Objects need to be filled as well</p>

<p>So what i need is:</p>

<pre><code>List&lt;Foo&gt; foos = .... the output from the JSON
</code></pre>