How to send data to server using volley? : I want to send data to server in the following format using volley.How can i do this..

$orders = [
            ['cid' => 1, 'pid' => 1, 'quantity' => 5, 'rid' => 1, 'eid' => 1, 'did' => 1, 'takenAt' => '2017-07-24 04:03:23'],
            ['cid' => 1, 'pid' => 1, 'quantity' => 5, 'rid' => 2, 'eid' => 1, 'did' => 1, 'takenAt' => '2017-07-24 04:03:23'],
            ['cid' => 1, 'pid' => 1, 'quantity' => 5, 'rid' => 3, 'eid' => 1, 'did' => 1, 'takenAt' => '2017-07-24 04:03:23']
        ];



so far i have done this but its raising exception

 

    StringRequest stringRequest = new StringRequest(Request.Method.POST, Constant.API_SUBMIT_ORDER, new Response.Listener<String>() {
                @Override
                public void onResponse(String response) {
                    Log.e("DATA", "RESPONSE===" + response);
                }
            }, new Response.ErrorListener() {
                @Override
                public void onErrorResponse(VolleyError error) {
                   error.printStackTrace();
                }
            }) {
                @Override
                protected Map<String, String> getParams() {
                    Calendar cal = Calendar.getInstance();
                    String time2 = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss a ").format(cal.getTime());
                    Map<String, String> orders = new HashMap<>();
                    for (int i = 0; i < myProductArrayList.size(); i++) {
                        orders.put("cid", "1");
                        orders.put("skuid", myProductArrayList.get(i).getProductId());
                        orders.put("qty", "50");
                        orders.put("rid", "1");
                        orders.put("eid", "mukulsingh");
                        orders.put("did", "1");
                        orders.put("takenAt", time2);
                    }
                    return orders;
                }
            };
    
            stringRequest.setRetryPolicy(new DefaultRetryPolicy(
                    MY_SOCKET_TIMEOUT_MS,
                    DefaultRetryPolicy.DEFAULT_MAX_RETRIES,
                    DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));
    
            RequestQueue requestQueue = Volley.newRequestQueue(this);
            requestQueue.add(stringRequest);