protected function validateJson(ResponseInterface $response): array
    {
        try {
            return \GuzzleHttp\json_decode((string) $response->getBody(), true);
        } catch (\Exception $e) {
            return [];
        }
    }
protected function validateJson(ResponseInterface $response): array
    {
        try {
            return \GuzzleHttp\json_decode((string) $response->getBody(), true);
        } catch (\Exception $e) {
            return [];
        }
    }
protected function validateJson ( ResponseInterface $ response ) : array { try { return \ GuzzleHttp \ json_decode ( ( string ) $ response -> getBody ( ) , true ) ; } catch ( \ Exception $ e ) { return [ ] ; } }
Validate json.

@param ResponseInterface $response

@return array
Validate json .