JSON to PHP array
 $json = '{"json":"document","with":["an",
 "array"]}';

 $j = json_decode($json, true);

 // $j
 Array
...