title: Need help extracting data from JSONArray
body: <p>First thanks to Pentium10 for <a href="https://stackoverflow.com/questions/3395729/convert-json-array-to-normal-java-array">this answer</a>! it got me one step further.</p>
  
  <p>I have a JSONArray which is generated in php by</p>
  
  <pre><code>echo (json_encode($output));
  </code></pre>
  
  <p>which generates this output</p>
  
  <pre><code>// linebreaks only for readability, they do not exist in the response
  [["Fitch's Chemist","731 Hay St","(08) 9321 6411"],
  ["Ferrara Karaoke Bar","67 Milligan Street","(08) 9481 1909"],
  ["Target: Perth","712-720 Hay St","(08) 9327 3700"],
  ["C Restaurant","44 St Georges Tce","(08) 9220 8333"],
  ["Celona Joe Tailors","146 Murray St","(08) 9325 8274"],
  ["Fashion In Colour","Shop 2, 138 Barrack St","(08) 9218 8233"],
  ["Mainpeak","858 Hay St","(08) 9322 9044"],
  ["Fj Storen Painting Contractors","34 Queen St","(08) 9486 9292"],
  ["Financial Pathfinders","Level 4\/81 St Georges Tce","(08) 9213 9699"],
  ["Seasons of Perth","37 Pier St","(08) 9325 7655"],
  ["David Jones","622 Hay St","(08) 9210 4000"],
  ["Pharmacity Chemist Supermart","717 Hay St","(08) 9322 6921"],
  ["Austcare","10 Pier St","(08) 9325 9330"],
  ["Western Australia","8 Pier St","(08) 9261 6222"],
  ["Oceanic Cruises","5 Barrack","(08) 9325 1191"]]
  </code></pre>
  
  <p>This outputs the list array filled as follows;</p>
  
  <pre><code>list(0)["Fitch's Chemist","731 Hay St","(08) 9321 6411"]
  list(1)["Ferrara Karaoke Bar","67 Milligan Street","(08) 9481 1909"]
  </code></pre>
  
  <p>what I now need to do is extract this further so that the "" enclosed data is stored in three separate arrays</p>
  
  <pre><code>    try {
          JSONArray jsonArray = new JSONArray(response);
          List&lt;String&gt; list = new ArrayList&lt;String&gt;();
          for (int i=0; i&lt;jsonArray.length(); i++) {
              list.add( jsonArray.getString(i) );
              JSONArray jsonList = new JSONArray(list);
              BusinessName.add(jsonList.getString(0));
              Address.add(jsonList.getString(1));
              TelNo.add(jsonList.getString(2));
          }
      } catch (JSONException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        }
  </code></pre>
  
  <p>Thanks Martin</p>