function json_decode($json) { if (empty($json)) { $json = array(); } return FastJSON::decode($json); }
function jsonDecode($s) { if (!$s) { return array(); } if (function_exists('json_decode')) { return json_decode($s); } include_once GORUM_DIR . "/FastJSON.class.php"; return FastJSON::decode($s); }
static function decode($string) { return FastJSON::decode($string); }