src/Common/Internal/Serialization/JsonSerializer.php
public function unserialize($serialized)
    {
        Validate::isString($serialized, 'serialized');

        $json = json_decode($serialized);
        if ($json && !is_array($json)) {
            return get_object_vars($json);
        } else {
            return $json;
        }
    }
public function unserialize($serialized)
    {
        Validate::isString($serialized, 'serialized');

        $json = json_decode($serialized);
        if ($json && !is_array($json)) {
            return get_object_vars($json);
        } else {
            return $json;
        }
    }
public function unserialize ( $ serialized ) { Validate :: isString ( $ serialized , 'serialized' ) ; $ json = json_decode ( $ serialized ) ; if ( $ json && ! is_array ( $ json ) ) { return get_object_vars ( $ json ) ; } else { return $ json ; } }
Unserializes given serialized string to array.

@param string $serialized The serialized object in string representation

@return array
Unserializes given serialized string to array .