- var_dump: documentation ( source)
- json_decode: documentation ( source)
<?php
var_dump(json_decode('{
"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{
"value": "New", "onclick": "CreateNewDoc()"
},{
"value": "Open", "onclick": "OpenDoc()"
},{
"value": "Close", "onclick": "CloseDoc()"
}
]
}
}
}', null));