posting data to server in json format using volley
Hello i am posting data to server in json format, but it returns volley server error in error response` RequestQueue queue = Volley.newRequestQueue(this); JSONObject jobj=new JSONObject(); try { jobj.put("id",”123”); jobj.put("session","new"); JSONArray array = null; array = new JSONArray(); for (int i = 0;i<3;i++){ JSONObject jsonObject = new JSONObject(); jsonObject.put("name","test"); jsonObject.put("content","test"); jsonObject.put("time"," 2016-04-07T11:44:22.407Z "); array.put(jsonObject); } Log.e(" array "," arrr"+array.toString()); jobj.put("data",array); } catch (JSONException e) { e