src/Common/Json.php
public static function decode(string $value)
    {
        $stdObject = json_decode($value);
        // catch error if it occurs
        self::catchError();

        if (self::getError()) {
            return self::getError();
        }

        return $stdObject;
    }
public static function decode(string $value)
    {
        $stdObject = json_decode($value);
        // catch error if it occurs
        self::catchError();

        if (self::getError()) {
            return self::getError();
        }

        return $stdObject;
    }
public static function decode ( string $ value ) { $ stdObject = json_decode ( $ value ) ; // catch error if it occurs self :: catchError ( ) ; if ( self :: getError ( ) ) { return self :: getError ( ) ; } return $ stdObject ; }
Decode the JSON string to \stdClass

@author Edson B S Monteiro <bruno.monteirodg@gmail.com>
@since 1.0
@param string $value
@return \stdClass|string
Decode the JSON string to \ stdClass