- json_decode: documentation ( source)
<?php
$tmp = 'archivedVars =
{
["Default"] =
{
["Name"] =
{
["Name1"] =
{
["@XXXXX"] =
{
["show"] = true,
["open"] = true,
},
},
["Name2"] =
{
["YYYYY"] =
{
["show"] = true,
["open"] = true,
},
},
},
},
}';
echo json_decode($tmp);