title: Android get JSON array without a name
body: <p>I got the following JSON data from my API:</p>
  
  <p><a href="https://i.stack.imgur.com/raPaS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/raPaS.png" alt="enter image description here"></a></p>
  
  <p>Json array and alot of json objects in it.</p>
  
  <p>How do I get a json array without a name?</p>
  
  <p>This is what I tried:</p>
  
  <pre><code>//Parsing the fetched Json String to JSON Object
   j = new JSONObject(response);
  result = j.getJSONArray('');
   for(int i=0;i&lt;j.length();i++){
              try {
                  //Getting json object
                  JSONObject json = j.getJSONObject(i);
                  Log.d("tag", "NAME IS: " +json.getString("name"));
  }
  }
  </code></pre>
  
  <p>the <code>json</code> variable stores all the json data!</p>