I would like to send and receive a Json Array with volley. Now I can receive an array and it\'s ok but I don\'t know how to send a request (For example: with post method).<
List> listMap = new ArrayList>(); Map map = new HashMap(); try { map.put("email", customer.getEmail()); map.put("password",customer.getPassword()); } catch (Exception e) { e.printStackTrace(); } listMap.add(map); String url = PersonalConstants.BASE_URL+"/url"; JsonObjectRequest jsonObjectRequest = new JsonObjectRequest( Request.Method.POST, url, String.valueOf(new JSONArray(listMap)), new Response.Listener() { @Override public void onResponse(JSONObject jsonObject) { Log.d(App.TAG, jsonObject.toString()); } }, new Response.ErrorListener (){ @Override public void onErrorResponse(VolleyError volleyError) { Log.d(App.TAG,volleyError.toString()); } } ); App.getInstance().getmRequestQueue().add(jsonObjectRequest);