title: Parsing json array with multiple arrays in it from php -> java
body: <p>I'm having trouble parsing a json response.  Its created via php and sent back to my phone via http as json.</p>
  
  <p>It is an array with 3 arrays in it so...</p>
  
  <pre><code>$arr = array();
  </code></pre>
  
  <p>Then I search my mysql database for specific IDs relating to the query, usually about 3 results are returned with unique ids as the array index.. like this</p>
  
  <pre><code>$sql = mysql_query("Select from so and so");
  while($row = mysql_fetch_assoc($sql)){
      $arr[$row["ID"]] = $row; 
  }
  print(json_encode($arr));
  </code></pre>
  
  <p>so now in my android (java) code I'm trying to convert the response to a json object and then parse it with </p>
  
  <pre><code>json_object.getString("FirstName")
  </code></pre>
  
  <p>for all 3 of the first names returned but its crashing.  So i am guess I need to parse out the 3 individual arrays first which is where I am stuck.</p>
  
  <p>-The question is how do I sort out the arrays returned within this one object. Each of them have the same keys, but different values</p>
  
  <p>-crashing wasnt a good choice in terms, what I should have said is it cant find the value I am searching for when I use the getString method, here is the return </p>