public function json()
    {

        if (!$this->isContentType('application/json')) {
            throw new Exception('Response is not JSON');
        }

        if (empty($this->_jsonAsObject)) {
            $this->_jsonAsObject = Utils::json_parse($this->text(), false);
        }

        return $this->_jsonAsObject;

    }
public function json()
    {

        if (!$this->isContentType('application/json')) {
            throw new Exception('Response is not JSON');
        }

        if (empty($this->_jsonAsObject)) {
            $this->_jsonAsObject = Utils::json_parse($this->text(), false);
        }

        return $this->_jsonAsObject;

    }
public function json ( ) { if ( ! $ this -> isContentType ( 'application/json' ) ) { throw new Exception ( 'Response is not JSON' ) ; } if ( empty ( $ this -> _jsonAsObject ) ) { $ this -> _jsonAsObject = Utils :: json_parse ( $ this -> text ( ) , false ) ; } return $ this -> _jsonAsObject ; }
Parses response body as JSON
Result is cached internally
@return stdClass
@throws Exception
Parses response body as JSON Result is cached internally