- var_dump: documentation ( source)
- json_decode: documentation ( source)
<?php
function d($v) {
$r = json_decode($v);
var_dump($r);
}
d('{
"items": [
{
"title": "Foo Bar"
},
{
"title": "Bar Foo"
}
],
"content": {
"title": "Super duper title",
"_empty": false
}
}');