title: Android Parse multiple JSON arrays
body: <p>I tried to parse multiple JSON arrays that my server returns to my application.</p>
  
  <p>The structure of the returned message from the server looks like this:</p>
  
  <blockquote>
    <p>[ json objects ][ json objects ]</p>
  </blockquote>
  
  <p>returned message :</p>
  
  <blockquote>
    <p>[{"latitude":"44.33","longitude":"44.33","name":"test1","Notification":"true"}][{"latitude":"44.33","longitude":"44.33","name":"test2","Notification":"false"}]</p>
  </blockquote>
  
  <p>Now I tried to parse this and get the Notification status (true / false) but I did not get the item i needed.</p>
  
  <pre><code>  try {
  
         JSONArray jr = new JSONArray(answer);
         JSONObject jb = (JSONObject)jr.getJSONObject(0);
         JSONArray nof = jb.getJSONArray("Notification");
         Log.d("Json", String.valueOf(nof));
    }catch(Exception e)
    {
         e.printStackTrace();
    }
  </code></pre>
  
  <p>I would be happy if someone can help me to understand what I need todo to achieve my mission.</p>