title: Getting only first element of json
body: <p>Trying to open this json on true response but gettong only first elemnt of this api_data.</p>
  
  <p>Unable to get the rest of the data.
  I tried below mentioned method to get the "api_data" but was unable to get,
  Not getting why rest of the data no available to me in log. </p>
  
  <pre><code>{
      "api_req": true,
      "api_data": [{
          "ID": "1",
          "project_name": "project test xen",
          "project_content": "lita5645"
      }, {
          "ID": "5",
          "project_name": "C\/o 48 No Houses T-II and 48 No houses T-III in New Police Lines Faridabad",
          "project_content": "lita5646"
      }]
  } 
  </code></pre>
  
  <p><strong><em>my retrofit class to get data.. from api ..</em></strong> </p>
  
  <pre><code> public void onResponse(Call&lt;ResponseActivityList&gt; call, Response&lt;ResponseActivityList&gt; response) {
                  progressDialog.dismiss();
                  //progressDialog.setCanceledOnTouchOutside(true);
                  // Response Success or Fail
                  if (response.isSuccessful()) {
                      if (response.body().isApi_req()) {
                          //success uploading the data
                          // results.setText(response.body().getResponse());
                          //  Toast.makeText(XenImageUploading.this, "success " + response.body().get_apiData(), Toast.LENGTH_SHORT).show();
                          Gson gson = new Gson();
  
  
  
                          data.add(gson.toJson(response.body().getApi_data()));
  
  
                          for (int i = 0 ; i&lt;data.size(); i++){
                              Log.e("Array", String.valueOf(data.size()));
                              projectnae_content.add(response.body().getApi_data().get(i).getID());
                              //Log.e("project",projectnae_content.toString());
                              //project_id.add(response.body().getApi_data().get(i).getID().toString());
                          }
  //                        Log.e("project_name" ,projectnae_content.toString());
                          //Toast.makeText(XenImageUploading.this, jsonInString, Toast.LENGTH_SHORT).show();
                          //String Project_name_content= response.body().getApi_data();
                          //Log.e("intersection_list", intersection_list.get(0));
  
                      } else {
                          //error uploading data
                          //results.setText(response.body().getResponse());
                          //Toast.makeText(XenImageUploading.this, R.string.string_upload_fail, Toast.LENGTH_SHORT).show();
                          Log.e("failure", String.valueOf(response.body().isApi_req()));
  
                      }
                  } else {
                      //error uploading data
                      //Toast.makeText(XenImageUploading.this, R.string.string_upload_fail, Toast.LENGTH_SHORT).show();
                      Log.e("failure2", response.message());
  
                  }
              } 
  </code></pre>