<?php
$json_string = <<<'EOT'
{
"John": {
"status":"Wait"
},
"Jennifer": {
"status":"Active"
},
"James": {
"status":"Active",
"age":56,
"count":10,
"progress":0.0029857,
"bad":0
}
}
EOT;
//$json_string = '{"a":1,"b":2,"c":3,"d":4,"e":5}';
$json = json_decode($json_string);
var_dump($json);
/*foreach ($json as $key => $val) {
if(is_array($val)) {
echo "$key:\n";
} else {
echo "$key => $val\n";
}
}*/
//echo $json;
preferences:
35.61 ms | 402 KiB | 5 Q