src/Alhames/Api/HttpClient.php
public function parseJsonResponse(ResponseInterface $response)
    {
        if (!in_array(static::getContentType($response), ['application/json', 'application/javascript', 'text/javascript'], true)) {
            throw new ParseContentException($response, 'json');
        }

        $content = (string) $response->getBody();
        try {
            return \GuzzleHttp\json_decode($content);
        } catch (\InvalidArgumentException $e) {
            throw new ParseContentException($response, 'json', $e);
        }
    }
public function parseJsonResponse(ResponseInterface $response)
    {
        if (!in_array(static::getContentType($response), ['application/json', 'application/javascript', 'text/javascript'], true)) {
            throw new ParseContentException($response, 'json');
        }

        $content = (string) $response->getBody();
        try {
            return \GuzzleHttp\json_decode($content);
        } catch (\InvalidArgumentException $e) {
            throw new ParseContentException($response, 'json', $e);
        }
    }
@param ResponseInterface $response

@throws ParseContentException

@return mixed