src/ChrisKonnertz/DeepLy/Protocol/JsonRpcProtocol.php
public function processResponseData($rawResponseData)
    {
        if (! is_string($rawResponseData)) {
            throw new \InvalidArgumentException('The $rawResponseData argument has to be a string');
        }

        $responseData = json_decode($rawResponseData);

        $this->validateResponseData($responseData);

        // We only return the inner result (=content) object, the other properties are no longer important
        return $responseData->result;
    }
public function processResponseData($rawResponseData)
    {
        if (! is_string($rawResponseData)) {
            throw new \InvalidArgumentException('The $rawResponseData argument has to be a string');
        }

        $responseData = json_decode($rawResponseData);

        $this->validateResponseData($responseData);

        // We only return the inner result (=content) object, the other properties are no longer important
        return $responseData->result;
    }
Processes the data from an response from the server to an API call.
Returns the payload (data) of the response or throws a ProtocolException.

@param string $rawResponseData The data (payload) of the response as a stringified JSON string
@return \stdClass              The data (payload) of the response as an object structure
@throws ProtocolException|\InvalidArgumentException