I am trying to get JSONObject from following snippet of code.
But since response body is large it can not store results completely.
Final aim is to convert it to jsonobject or store as Json File
CloseableHttpResponse apiResponse;
apiResponse = getReorting(authToken);
String responseString = EntityUtils.toString(apiResponse.getEntity(), "UTF-8");
JSONObject responseJson = new JSONObject(responseString);