title: Json Parsing: How to fetch "body" data inside "body array" using Gson (or better in other java library or notation supported)?
body: <p>My Rest API is returning the following response, in which only the inner list is required, all data shall be discarded:</p>
  
  <pre class="lang-js prettyprint-override"><code>{
    "meta": [],
    "links": [],
    "body": [
      {
        "meta": [],
        "links": [],
        "body": {
          "field1": "value1",
          "fieldn": "valuen"
        } // &lt;-----
      },
      {
        "meta": [],
        "links": [],
        "body": {
          "field1": "value1",
          "fieldn": "valuen"
        } // &lt;-----
      }
    ]
  }
  </code></pre>
  
  <p>Is there any way in <code>Gson</code> or another other java library to fetch an array of the body or a straightforward way of doing that? Or maybe even using standard of java 8?</p>
  
  <p>Or, should I use a standard iterator as follows:</p>
  
  <pre class="lang-java prettyprint-override"><code>//Old way to do this
  JSONArray BodyArr = (JSONArray) jsonObject.get("Body");
  Iterator&lt;JSONObject&gt; itBody = BodyArr.iterator();
  int teller = 0;
  while (itBody.hasNext()) {
    JSONObject bodyObj = itBody.next();
    JSONObject body = (JSONObject) bodyObj.get("Body");
  }
  </code></pre>
  
  <p>Also in mysql we have way to do that using notation ($.body.body[] etc.). Is there any notational way to fetch the object</p>