src/JSONDeserializer.php
public function deserialize(StringLiteral $data)
    {
        $data = json_decode($data->toNative(), $this->assoc);

        if (null === $data) {
            throw new NotWellFormedException('Invalid JSON');
        }

        return $data;
    }
public function deserialize(StringLiteral $data)
    {
        $data = json_decode($data->toNative(), $this->assoc);

        if (null === $data) {
            throw new NotWellFormedException('Invalid JSON');
        }

        return $data;
    }
public function deserialize ( StringLiteral $ data ) { $ data = json_decode ( $ data -> toNative ( ) , $ this -> assoc ) ; if ( null === $ data ) { throw new NotWellFormedException ( 'Invalid JSON' ) ; } return $ data ; }
Decodes a JSON string into a generic PHP object.

@param StringLiteral $data
@return \stdClass
Decodes a JSON string into a generic PHP object .