title: How to fetch Json data from array of arrays in android
body: <p>For Example i have the array of arrays of JSON format:</p>
  
  <pre><code>[
    [17,"Tracker-9210671","+918010804433",true,84,"869867039210671"],
    [18,"Gtrack_Ciaz","+918010804433",true,85,"869867039215308"], 
    [20,"Gtrack_Zeep_Trunk","+918010804433",true,86,"869867039210333"], 
    [19,"Gtrack_Zeep_Dashboard","+918010804433",true,87,"869867039209095"]
  ]
  </code></pre>
  
  <p>And i want to fetch this Json data in my android , How to get this.I am not able to Fetch this JsonArray Can anyone tell what should be the code for this.</p>
  
  <p>What i have done is(Using volley):</p>
  
  <p>''' </p>
  
  <pre><code> public class MainActivity extends AppCompatActivity {
  
   private TextView mTextViewResult;
   private RequestQueue mQueue;
  
   @Override
   protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
  
    mTextViewResult = findViewById(R.id.text_view_result);
    Button buttonParse = findViewById(R.id.button_parse);
  
    mQueue = Volley.newRequestQueue(this);
  
    buttonParse.setOnClickListener(new View.OnClickListener() {
     @Override
     public void onClick(View v) {
      jsonParse();
     }
    });
   }
   private void jsonParse() {
    String url = "url";
    JsonArrayRequest request = new JsonArrayRequest(Request.Method.GET, url, null,
     new Response.Listener &lt; JSONArray &gt; () {
      @Override
      public void onResponse(JSONArray response) { // Called when request successfull.
  
  
       try {
        for (int i = 0; i &lt; response.length(); i++) {
  
         JSONArray jsonArray = response.getJSONArray(i);
         for (int j = 0; j &lt; jsonArray.length(); j++) {
          JSONArray value = jsonArray.getJSONArray(j);
  
          int DB_ID = value.getInt(0);
          String Devie_Name = value.getString(1);
          String Mobile_Number = value.getString(2);
          Boolean Status = value.getBoolean(3);
          int Stock_Id = value.getInt(4);
          String Device_Id = value.getString(5);
          mTextViewResult.append(String.valueOf(DB_ID) + " , " + Devie_Name + " , " + Mobile_Number + " , " + String.valueOf(Status) + " , " + String.valueOf(Stock_Id) + " , " + Device_Id + "\n\n");
  
         }
        }
  
       } catch (JSONException e) {
        e.printStackTrace();
       }
  
      }
  
  
     }, new Response.ErrorListener() {
      @Override
      public void onErrorResponse(VolleyError error) { // called when request not success.
       error.printStackTrace();
      }
     });
  
    mQueue.add(request);
   }
  }
  </code></pre>
  
  <p>'''</p>
  
  <p>Error i got:</p>
  
  <p>org.json.JSONException: Value 17 at 0 of type java.lang.Integer cannot be 
     converted to JSONArray.</p>