decode() public method

FastJSON::decode(params:String[, useStdClass:Boolean]):*
public decode ( $encode, $stdClass = false )
Exemplo n.º 1
0
 function json_decode($json)
 {
     if (empty($json)) {
         $json = array();
     }
     return FastJSON::decode($json);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 static function decode($string) {
     return FastJSON::decode($string);
 }