title: Guzzle 6: no more json() method for responses
body: <p>Previously in Guzzle 5.3:</p>
  
  <pre><code>$response = $client-&gt;get('http://httpbin.org/get');
  $array = $response-&gt;json(); // Yoohoo
  var_dump($array[0]['origin']);
  </code></pre>
  
  <p>I could easily get a PHP array from a JSON response. Now In Guzzle 6, I don't know how to do. There seems to be no <code>json()</code> method anymore. I (quickly) read the doc from the latest version and don't found anything about JSON responses. I think I missed something, maybe there is a new concept that I don't understand (or maybe I did not read correctly).</p>
  
  <p>Is this (below) new way the only way?</p>
  
  <pre><code>$response = $client-&gt;get('http://httpbin.org/get');
  $array = json_decode($response-&gt;getBody()-&gt;getContents(), true); // :'(
  var_dump($array[0]['origin']);
  </code></pre>
  
  <p>Or is there an helper or something like that?</p>