I used to decode a json string stored in a variable. Now i've come across a situation where a php file is passed a set of json data.
I'm not aware of how to get the data and then decode it to php array.
please do not give answers like
$variable = '{ "data1" : "value1" }';
I've used this before.
//Edit
Also I'm not asking how to encode a php array to json.
Thanks.