- var_dump: documentation ( source)
- json_decode: documentation ( source)
<?php
$string = '{"product":{"identifier":{"condition":"function()\n{\n return \'hello\';\n}","value":"function()\n{\n var a = s[\"[[ADPAN-]]\"];\n\n return \'hello\';\n}"}}}';
var_dump( json_decode( $string, true ) );