original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: 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.
docstring_tokens: Shortcut of GET restful request as json format