Fibres - PHP 8.1
$response = $httpClient->request('https://example.com/');
print json_decode($response->getBody()->buffer())['code'];
Puzzled Puffin
$response = $httpClient->request('https://example.com/');
print json_decode($response->getBody()->buffer())['code'];