public function json()
    {
        $json = json_decode($this->getBody(), true);
        if ($json === null) {
            throw new RuntimeException(sprintf(
                "Can't decode response as JSON: %s",
                function_exists('json_last_error_msg')?
                    json_last_error_msg():
                    'Error code '.json_last_error()
            ));
        }
        return $json;
    }
public function json()
    {
        $json = json_decode($this->getBody(), true);
        if ($json === null) {
            throw new RuntimeException(sprintf(
                "Can't decode response as JSON: %s",
                function_exists('json_last_error_msg')?
                    json_last_error_msg():
                    'Error code '.json_last_error()
            ));
        }
        return $json;
    }
public function json ( ) { $ json = json_decode ( $ this -> getBody ( ) , true ) ; if ( $ json === null ) { throw new RuntimeException ( sprintf ( "Can't decode response as JSON: %s" , function_exists ( 'json_last_error_msg' ) ? json_last_error_msg ( ) : 'Error code ' . json_last_error ( ) ) ) ; } return $ json ; }
Try to json_decode the response body
@return string
@throws RuntimeException
Try to json_decode the response body