Get JSON response for GET

@param   request Request object for GET
@param   method HTTP method
@param   params POST parameters
@throws  JSONException
@return  {@link JSONObject}
509652
public static JSONObject getJSONObject(HttpGet request, Integer method, HashMap<String, String> params) throws JSONException {
        switch (method) {
        case METHOD_GET:
            return doGetRequest(request);
        default:
            throw new RuntimeException("Wrong http method requested");
        }
    }
556680
public JSONObject getJson() throws JSONException {
        JSONObject json = create();
        json.put("implementorClass", implementorClass);
        if (category != null)
            json.put("category", category);
        if (label != null)
            json.put("label", label);
        if (icon != null)
            json.put("icon", icon);
        if (pagelet != null)
            json.put("pagelet", pagelet);
        if (hidden)
            json.put("hidden", true);
        return json;
    }
1370204
public JSONObject search(Query params, RequestOptions requestOptions) throws AlgoliaException {
    String paramsString = params.getQueryString();
    JSONObject body = new JSONObject();
    try {
      body.put("params", paramsString);
    } catch (JSONException e) {
      throw new RuntimeException(e);
    }
    return client.postRequest("/1/indexes/" + encodedIndexName + "/query", body.toString(), false, true, requestOptions);
  }
183864
public RestResponse postJson(final String uri, final String params)
            throws IOException, AppPlatformException {
        return requestJson(getPath(uri), HttpPost.METHOD_NAME, params);
    }
1225690
public <T> JSONObject getJsonResponseFromGet(Class<T> objectClass,
												 Collection<? extends NameValuePair> params) throws RedmineException, JSONException {
		final List<NameValuePair> newParams = new ArrayList<>(params);
		List<NameValuePair> paramsList = new ArrayList<>(newParams);
		final URI uri = getURIConfigurator().getObjectsURI(objectClass, paramsList);
		final HttpGet http = new HttpGet(uri);
		final String response = send(http);
		final JSONObject responseObject = RedmineJSONParser.getResponse(response);
		return responseObject;
	}
613472
public Object get(String key) throws JSONException {
        if(!myHashMap.containsKey(key)) {
            throw new JSONException("JSONObject[" + quote(key) +
                    "] not found.");
        }
        return opt(key);
    }
932844
public JSONObject get(String url, HashMap<String, String> params) throws JSONException {
		return sendGetRequest(url, METHOD_GET, params);
	}
359833
public Response api(Request request) throws IOException {
    Request req = new Request();
    req.setMethod(request.getMethod());
    req.setBaseUri(this.host);
    req.setEndpoint("/" + version + "/" + request.getEndpoint());
    req.setBody(request.getBody());
    for (Map.Entry<String, String> header : this.requestHeaders.entrySet()) {
      req.addHeader(header.getKey(), header.getValue());
    }
    for (Map.Entry<String, String> queryParam : request.getQueryParams().entrySet()) {
      req.addQueryParam(queryParam.getKey(), queryParam.getValue());
    }

    return makeCall(req);
  }
270806
public void renderView(HttpServerRequest request, JsonObject params) {
		renderView(request, params, null, null, 200);
	}
881918
public JSONObject find(HashMap<String, String> params) throws JSONException {   
        return oClient.get("/profiles/v2/search/providers", params);
    }
617034
public JSONObject getReasons(HashMap<String, String> params) throws JSONException {
        return oClient.get("/profiles/v1/metadata/reasons", params);
    }
1275741
public JSONObject postJob(HashMap<String, String> params) throws JSONException {
        return oClient.post("/hr/v2/jobs", params);
    }
4957
private String getHttpMethod(final HttpServletRequest request) {
        String ret = (String) request.getAttribute(Keys.HttpRequest.REQUEST_METHOD);
        if (StringUtils.isBlank(ret)) {
            ret = request.getMethod();
        }

        return ret;
    }
548419
public JSONObject toJSON() throws JSONException {
        JSONObject json = new JSONObject();

        json.put(JSON_TYPE, this.getType());

        return json;
    }
322504
public static JSONObject getJSONObject(HttpGet request) throws JSONException {
        return UpworkRestClient.getJSONObject(request, METHOD_GET, new HashMap<String, String>());
    }
949165
private JsonNode invokeCallbackGet(final GetRequest req) {
        Object obj = this.getObject(req.getObjref());
        String methodName = javaScriptPropertyToJavaPropertyName("get", req.getProperty());
        try {
            Method getter = obj.getClass().getMethod(methodName);
            return JsiiObjectMapper.valueToTree(invokeMethod(obj, getter));
        } catch (NoSuchMethodException e) {
            throw new JsiiException(e);
        }
    }
836893
protected JSON createJSON( Map model, HttpServletRequest request, HttpServletResponse response ) {
      return defaultCreateJSON( model );
   }