protected function stringifyBody(ResponseInterface $response): string
    {
        $body = $response->getBody();
        if ($body === null) {
            return '';
        }

        return json_encode($body, JSON_PARTIAL_OUTPUT_ON_ERROR);
    }
protected function stringifyBody(ResponseInterface $response): string
    {
        $body = $response->getBody();
        if ($body === null) {
            return '';
        }

        return json_encode($body, JSON_PARTIAL_OUTPUT_ON_ERROR);
    }
protected function stringifyBody ( ResponseInterface $ response ) : string { $ body = $ response -> getBody ( ) ; if ( $ body === null ) { return '' ; } return json_encode ( $ body , JSON_PARTIAL_OUTPUT_ON_ERROR ) ; }
Stringify response body to JSON string.

@param ResponseInterface $response
@return string
Stringify response body to JSON string .