- var_dump: documentation ( source)
- json_decode: documentation ( source)
- json_encode: documentation ( source)
<?php
$lookup = new StdClass();
$lookup->blah = 12;
$name = json_encode($lookup);
var_dump($name);
$name2 = json_decode($name);
var_dump($name2);
?>
btw, shorter way to output jsoned $lookup:
<?= json_encode($lookup) ?>