code: protected static JSONObject parseObject(String url, AuditSettings settings){
          LOGGER.info("NFRR Audit Collector Audit API Call");
          RestTemplate restTemplate = new RestTemplate();
          JSONObject responseObj = null;
          try {
              ResponseEntity<String> response = restTemplate.exchange(url, HttpMethod.GET, getHeaders(settings), String.class);
              JSONParser jsonParser = new JSONParser();
              responseObj = (JSONObject) jsonParser.parse(response.getBody());
          } catch (Exception e) {
              LOGGER.error("Error while calling audit api for the params : " + url.substring(url.lastIndexOf("?")),e);
          }
          return responseObj;
      }
docs: Make audit api rest call and parse response