title: Json Array without passing array name?
body: <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_map);
      Bundle b = getIntent().getExtras();
      String Array = b.getString("ITEM_EXTRA");
      String Tripname = getIntent().getExtras().getString("Trip");
  
      try {
          JSONArray jO = new JSONArray(Array);
  
          for(int i=0;i&lt;jO.length();i++) {
              JSONObject tripObject = jO.getJSONObject(i);
  
              String Trips = tripObject.getString("TripNO");
              JSONArray arrayJson = tripObject.getJSONArray("Trips");
  
              if(Trips.equals(Tripname)) {
  
              }
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/5lRuj.png" rel="nofollow">JSON Array </a></p>
  
  <p>I want to get the <code>Sfltlattitude</code> and <code>SfltLogitude</code>. In string <code>Tripname</code> I am passing the key <code>Trip1</code> from the other activity as the <code>TRIPNO</code> is not defined(the <code>TRIPNO</code>  can be any <code>trip2</code>.. and so on). In <code>arrayJson</code> I am getting the array of <code>TRIP1</code>, but I'm not able to get the <code>Sfltlattitude</code> or <code>SfltLogitude</code>.   </p>