title: Parsing JSON Array in Recyclerview using volley, why it show less data than it have on server?
body: <p>i am trying to parse <code>Json Array</code> in <code>recyclerview</code> using <code>volley</code> in <code>android</code>, but it show less data than it have on server.
  i mean it parse only 4 data, server have 10. why?
  code: </p>
  
  <p>JsonObjectRequest jsonObjectReq = new JsonObjectRequest(Request.Method.GET, url, null,</p>
  
  <pre><code>                new Response.Listener&lt;JSONObject&gt;() {                
                  @Override
                  public void onResponse(JSONObject response) {
  
                      try {
                         JSONObject data, deal_mode;
      String total, ref, name,category_name,start_date,end_date,offer_price,market_price,gain,structure_note,other_note;
  
      data = resp.getJSONObject("data");
      total = data.getString("total");
      JSONArray data1 = data.getJSONArray("data");
  
      try {
          for (int i = 0; i &lt;response.length(); i++) {           
              JSONObject jresponse = data1.getJSONObject(i);
              ref = jresponse.getString("ref");
              name = jresponse.getString("name");
              deal_mode = jresponse.getJSONObject("deal_mode");
              category_name=deal_mode.getString("category_name");
              start_date=jresponse.getString("start_date");
              end_date=jresponse.getString("end_date");
              offer_price=jresponse.getString("offer_price");
              market_price=jresponse.getString("market_price");
              gain=jresponse.getString("gain");
              structure_note=jresponse.getString("structure_note");
              other_note=jresponse.getString("other_note");
  
              Toast.makeText(getApplication(), name, Toast.LENGTH_LONG).show();          
          }
                      } catch (JSONException e) {
                          e.printStackTrace();
                      }
                  }
              }, new Response.ErrorListener() {
          @Override
          public void onErrorResponse(VolleyError error) {
              // progressBar.setVisibility(View.INVISIBLE);
              Toast.makeText(getApplication(), error.toString(), Toast.LENGTH_LONG).show();
          }
      }) {
          //This is for Headers
          @Override
          public Map&lt;String, String&gt; getHeaders() throws AuthFailureError {
              HashMap&lt;String, String&gt; params = new HashMap&lt;String, String&gt;();
              params.put("Content-Type", "application/json; charset=UTF-8");
              params.put("Authorization", "Bearer" + getToken);
              return params;
          }
      };
      //Add the Request to the RequestQueue.
      VolleySingleton.getInstance(getApplicationContext()).addToRequestQueue(jsonObjectReq, REQUEST_TAG);
  </code></pre>