public function getJson($url, $params = [])
    {
        $req = $this->buildRequest('GET', $url, $params);
        $req->setHeader('accept', 'application/json');
        $res = $this->exec($req);
        return $res === false ? false : $res->getJson();
    }
public function getJson($url, $params = [])
    {
        $req = $this->buildRequest('GET', $url, $params);
        $req->setHeader('accept', 'application/json');
        $res = $this->exec($req);
        return $res === false ? false : $res->getJson();
    }
public function getJson ( $ url , $ params = [ ] ) { $ req = $ this -> buildRequest ( 'GET' , $ url , $ params ) ; $ req -> setHeader ( 'accept' , 'application/json' ) ; $ res = $ this -> exec ( $ req ) ; return $ res === false ? false : $ res -> getJson ( ) ; }
Shortcut of GET restful request as json format
@param string $url request URL string.
@param array $params extra query params, appended to URL.
@return array result json data, or false on failure.
Shortcut of GET restful request as json format