title: Working with JSONArrays: how do i convert to ArrayList<String[]>
body: <p>I have json that looks like the following</p>
  
  <pre><code>{  
     "tiles":[  
        {  
           "header":"Manual",
           "subheader":"Login",
           "summary1_label":"",
           "summary2_label":"",
           "summary3_label":"",
           "summary4_label":"",
           "summary1_value":"",
           "summary2_value":"",
           "summary3_value":"",
           "summary4_value":"",
           "iconUrl":"http://x.x.x.x\/icon1.png"
        },
        {  
           "header":"NewUser",
           "subheader":"Login",
           "summary1_label":"",
           "summary2_label":"",
           "summary3_label":"",
           "summary4_label":"",
           "summary1_value":"",
           "summary2_value":"",
           "summary3_value":"",
           "summary4_value":"",
           "iconUrl":"http://x.x.x.x.x\/icon2.png"
        },
        {  
           "header":"Facebook",
           "subheader":"Login",
           "summary1_label":"",
           "summary2_label":"",
           "summary3_label":"",
           "summary4_label":"",
           "summary1_value":"",
           "summary2_value":"",
           "summary3_value":"",
           "summary4_value":"",
           "iconUrl":"http://x.x.x.x/icon3.png"
        }
     ]
  }
  </code></pre>
  
  <p>I cast this as a JsonObject and send it to a reformating method. in that method i do the following</p>
  
  <pre><code>public ArrayList&lt;String[]&gt; formatHttpResponse_SummaryTile(JSONObject json) throws JSONException {
      ArrayList&lt;String[]&gt; arrayList_summary = new ArrayList&lt;String[]&gt;();
      JSONArray tilesArray = json.getJSONArray("tiles");
      //JSONObject allTilesData = json.getJSONObject("tiles");
      for (int i=0; i&lt;tilesArray.length(); i++)
      {
          //JSONObject thisJsonObject = tilesArray.getJSONObject(i);
          JSONArray thisJsonArray = tilesArray.getJSONArray(i);
          String[] thisStringArray = new String[thisJsonArray.length()];
          for (int j=0; j&lt;thisJsonArray.length(); j++)
          {
              thisStringArray[j]=thisJsonArray.getString(j);
          }
          arrayList_summary.add(thisStringArray);
      }
      return arrayList_summary;
  }
  </code></pre>
  
  <p>As you can see i create an array list then cycle through my jsonObjects 3 children. Now the problem is that i want to convert the children to String[][ but my code bugs out at <code>JSONArray thisJsonArray = tilesArray.getJSONArray(i);</code> as it isnt a jsonArray.</p>
  
  <p>Any idea how i can get the children above into 3 string arrays all added to a arrayList Is there a more efficent, straight cast i can do?</p>