It's better when it's simple
Learn about DokuWiki
Follow us on Facebook, Twitter and other social networks.
Since json_decode and json_encode are not available on all systems they should not be used. Instead use our JSON class.
$json = new JSON();
$string = $json->encode(array('foo'));
$array = $json->decode($string);