Previously in Guzzle 5.3:
$response = $client->get(\'http://httpbin.org/get\'); $array = $response->json(); // Yoohoo var_dump($array[0][\'origin\']);
Adding ->getContents() doesn't return jSON response, instead it returns as text.
->getContents()
You can simply use json_decode
json_decode