/** * Decode JSON string * * @param string $json * @return string */ function do_json_decode($json) { static $json; if (empty($json)) { $json =& Services_JSON::instance(); } // if return $json->decode($json); }