title: JSON array retrieve value by name
body: <pre><code>public void onResponse( String response ){
      JSONArray jsonArray ;
      try{
          JSONObject jsonObject = jsonArray.getJSONObject(1);
          String result = jsonObject.getString("name");
          t.setText(result);
      }
      catch(JSONException e){
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>and my json file is</p>
  
  <pre><code>[  
  {  
    "0":"1",
    "1":"Adarsh",
    "id":"1",
    "name":"Adarsh"
  },
  {  
    "0":"2",
    "1":"Asif",
    "id":"2",
    "name":"Asif"
  },
  {  
    "0":"3",
    "1":"Baba",
    "id":"3",
    "name":"Baba"
  },
  {  
    "0":"4",
    "1":"Beeta",
    "id":"4",
    "name":"Beeta"
  }
  ]
  </code></pre>
  
  <p>In my application it doesn't retrieve the value for "name" instead showing error toast.</p>