public function jsonArray()
    {

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

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

        return $this->_jsonAsArray;

    }
public function jsonArray()
    {

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

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

        return $this->_jsonAsArray;

    }
public function jsonArray ( ) { if ( ! $ this -> isContentType ( 'application/json' ) ) { throw new Exception ( 'Response is not JSON' ) ; } if ( empty ( $ this -> _jsonAsArray ) ) { $ this -> _jsonAsArray = Utils :: json_parse ( $ this -> text ( ) , true ) ; } return $ this -> _jsonAsArray ; }
Parses response body as JSON and returns an array
Result is cached internally

@throws Exception

@return array
Parses response body as JSON and returns an array Result is cached internally