I am sending this jsonArray from android side And need to insert it into database.
I have following JSONArray:
[{
"pid":"28",
"prod_brand_name":"IPCA",
"prod_cat_name":"Zerodol P",
"prod_comp_name":"Zedfit Tablet",
"prod_mrp":"100",
"prod_name":"Collaflex",
"prod_quantity":"2",
"prod_size":"11",
"prod_total":"200",
"prod_unit":"90",
"ref_pid":"24"
},
}]
I am not able to fetch this array value using foreach and then write insert query. Thanks in advance!!