I have a json object of this type:
{
"order": {
"Food": "[Test 1, Test 2, Test 0, Test 3, Test 1, Test 3, Test 11, Test 7, Test 9, Test 8, Test 2]",
"Quantity": "[2, 3, 6, 2, 1, 7, 10, 2, 0, 0, 1]"
},
"tag": "neworder"
}
I have used json_decode but i would like to take the values inside Food and Quantity and store them inside a php array, i ve tried many approaches but really with no luck. Could someone point to the right way to do it, or is something wrong with my json message??
See Question&Answers more detail:os