title: How to get complex JSON from URL?
body: <p>My json is like this </p>
  
  <pre><code>{
      "results": [{
          "syllabus": "CBSE",
          "grade": "5",
          "subject": "Kannada",
          "topic": "Grammar Level 1",
          "id": 28
      }]
  }
  </code></pre>
  
  <p>Using Volley</p>
  
  <pre><code>         JsonArrayRequest req = new JsonArrayRequest(urlJsonArry,
              new Response.Listener&lt;JSONArray&gt;() {
                  @Override
                  public void onResponse(JSONArray response) {
                      Log.d(TAG, response.toString());
  
                      try {
                          // Parsing json array response
                          // loop through each json object
                          jsonResponse = "";
                          for (int i = 0; i &lt; response.length(); i++) {
  
                              JSONObject person = (JSONObject) response
                                      .get(i);
  
                              System.out.println(person.toString());
  
  
  
  
  
                              String syllabus = person.getString("syllabus");
                              String grade= person.getString("grade");
                              jsonResponse += "Name: " + syllabus + "\n\n";
                              jsonResponse += "Email: " + grade + "\n\n";
  
  
                          }
  </code></pre>