How to send data over server in format of json array using post method : How to send data over server in format of json array using post method


{
 "user_id":"1",
 "username":"shubham",
 "order":[{"product_id":"2","qty":"5","price":"100","total":"500","product_name":"choclate"},{"product_id":"1","qty":"2","price":"50","total":"500","product_name":"choclate"}]

}