Previously in Guzzle 5.3:
$response = $client->get(\'http://httpbin.org/get\'); $array = $response->json(); // Yoohoo var_dump($array[0][\'origin\']);
I use json_decode($response->getBody()) now instead of $response->json().
json_decode($response->getBody())
$response->json()
I suspect this might be a casualty of PSR-7 compliance.