src/Communibase/Connector.php
private function parseResult($response, $httpCode)
    {
        $result = json_decode($response, true);

        if (is_array($result)) {
            return $result;
        }

        throw new Exception('"' . $this->getLastJsonError() . '" in ' . $response, $httpCode);
    }
private function parseResult($response, $httpCode)
    {
        $result = json_decode($response, true);

        if (is_array($result)) {
            return $result;
        }

        throw new Exception('"' . $this->getLastJsonError() . '" in ' . $response, $httpCode);
    }
private function parseResult ( $ response , $ httpCode ) { $ result = json_decode ( $ response , true ) ; if ( is_array ( $ result ) ) { return $ result ; } throw new Exception ( '"' . $ this -> getLastJsonError ( ) . '" in ' . $ response , $ httpCode ) ; }
Parse the Communibase result and if necessary throw an exception

@param string $response
@param int $httpCode

@return array

@throws Exception
Parse the Communibase result and if necessary throw an exception