Pubwich::json_decode PHP Méthode

json_decode() public méthode

public json_decode ( string $str ) : object
$str string JSON-encoded object
Résultat object PHP object
    public function json_decode($str)
    {
        if (function_exists('json_decode')) {
            return json_decode($str);
        } else {
            return Zend_Json::decode($str, Zend_Json::TYPE_OBJECT);
        }
    }