public static function jsonDecode($value)
    {
        if (defined('JSON_PARSER_NOTSTRICT')) { // pecl-json-c ext
            $decoded = json_decode($value, false, 512, JSON_PARSER_NOTSTRICT);
        } else { // json-ext
            $decoded = json_decode($value);
        }

        return $decoded;
    }
public static function jsonDecode($value)
    {
        if (defined('JSON_PARSER_NOTSTRICT')) { // pecl-json-c ext
            $decoded = json_decode($value, false, 512, JSON_PARSER_NOTSTRICT);
        } else { // json-ext
            $decoded = json_decode($value);
        }

        return $decoded;
    }
public static function jsonDecode ( $ value ) { if ( defined ( 'JSON_PARSER_NOTSTRICT' ) ) { // pecl-json-c ext $ decoded = json_decode ( $ value , false , 512 , JSON_PARSER_NOTSTRICT ) ; } else { // json-ext $ decoded = json_decode ( $ value ) ; } return $ decoded ; }
Wrapper fo json_decode function that keeps parser portable
between json-ext and pecl-json-c extensions

@param  string $value json string
@return mixed
Wrapper fo json_decode function that keeps parser portable between json - ext and pecl - json - c extensions