title: Loop through multiple JsonObject
body: <p>How can I loop through <strong>JSON</strong> with this type of structure:</p>
  
  <pre><code>{
      "name": "Jane John Doe",
      "email": "janejohndoe@email.com"
  },
  {
      "name": "Jane Doe",
      "email": "janedoe@email.com"
  },
  {
      "name": "John Doe",
      "email": "johndoe@email.com"
  }
  </code></pre>
  
  <p>I tried the below code but I only got the last item.</p>
  
  <pre><code>List&lt;Object&gt; response = new ArrayList&lt;&gt;();
  
  JSONObject jsonObject = new JSONObject(json);
  Iterator&lt;?&gt; iterator = jsonObject.keys();
  while (iterator.hasNext()) {
      Object key = iterator.next();
      Object value = jsonObject.get(key.toString());
  
      response.add(value);
  }
  </code></pre>