public function getJsonResponse(array $query = array(), $assoc = true)
    {
        //argument 2 must be bool
        Argument::i()->test(2, 'bool');
        
        return json_decode($this->getResponse($query), $assoc);
    }
public function getJsonResponse(array $query = array(), $assoc = true)
    {
        //argument 2 must be bool
        Argument::i()->test(2, 'bool');
        
        return json_decode($this->getResponse($query), $assoc);
    }
public function getJsonResponse ( array $ query = array ( ) , $ assoc = true ) { //argument 2 must be bool Argument :: i ( ) -> test ( 2 , 'bool' ) ; return json_decode ( $ this -> getResponse ( $ query ) , $ assoc ) ; }
Returns the json response from the server

@param array $query Extra URL parameters
@param bool  $assoc If true will return an associative array

@return array
Returns the json response from the server