title: Stuck Parsing nested JSON Array
body: <p>I'm stuck parsing a nested JSON Array. This should be fairly simple but I can't seem to get it to work.</p>
  
  <p>I have a JSON Array like below:</p>
  
  <pre><code>    {"currentPage":0,
        "totalPages":1,
        "totalSize":1,
        "first":true,
        "last":true,
        "list"[{"date":"2018-11-07T09:34:25.042+0000",
        "lastUpdated":"2018-11-07T09:34:25.266+0000",
        "id"130674,
        "active":true,
        "address":null,
        "storeMobileNumbers": 
        [{"id":130676,"mobile":"+201008005090","version":0
        }]
    }]
  }
  </code></pre>
  
  <p>I'm trying to get the address from the list first, then get the values from storeMobileNumbers.</p>
  
  <p>I have a POJO class for the list, and now I have created a POJO class for the StoreMobileNumbers.</p>
  
  <p>This is what I have right now:</p>
  
  <pre><code>      Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd").create();
      Type collectionType = new TypeToken&lt;List&lt;MyStore&gt;&gt;(){}.getType();
      Type collection2 = new TypeToken&lt;List&lt;StoreMobileNumber&gt;&gt;({}.getType();
      JSONObject obj = new JSONObject(json);
         if (obj.has("list")) {
           String myList = obj.get("list").toString();
           list1 = gson.fromJson(myList, collectionType);
  
           JSONArray obj1 = new JSONArray(list1);
           JSONObject numbersObject = obj1.toJSONObject(obj1);
           String mobileList = 
              numbersObject.get("storeMobileNumbers").toString();
              mobileNumbers = gson.fromJson(mobileList, collection2);
          }
  </code></pre>
  
  <p>My StoreMobileNumbersClass:</p>
  
  <pre><code>   public class StoreMobileNumber{
  
     public Long id;
     public String mobile;
  
     }
  </code></pre>
  
  <p>So far, my efforts have been unsuccessful. I'm getting the following error:</p>
  
  <pre><code>   org.json.JSONException: No value for storeMobileNumbers
  </code></pre>
  
  <p>Can someone help me see what I'm missing here?</p>