public function getJsonResponse($assoc = true)
    {
        //argument 1 must be a boolean
        Argument::i()->test(1, 'bool');

        $this->meta['response'] = $this->getResponse();
        return json_decode($this->meta['response'], $assoc);
    }
public function getJsonResponse($assoc = true)
    {
        //argument 1 must be a boolean
        Argument::i()->test(1, 'bool');

        $this->meta['response'] = $this->getResponse();
        return json_decode($this->meta['response'], $assoc);
    }
public function getJsonResponse ( $ assoc = true ) { //argument 1 must be a boolean Argument :: i ( ) -> test ( 1 , 'bool' ) ; $ this -> meta [ 'response' ] = $ this -> getResponse ( ) ; return json_decode ( $ this -> meta [ 'response' ] , $ assoc ) ; }
Send the curl off and returns the results
parsed as JSON

@param bool $assoc To use associative array instead

@return array
Send the curl off and returns the results parsed as JSON