code: public JSONArray getJsonArray(String endpoint) throws IOException {
          String res = this.get(endpoint, null, null);
          try {
              return new JSONArray(res);
          } catch (JSONException ex) {
              LOG.warn(res);
              throw ex;
          }
      }
docs: Issues HTTP GET request, converts response body to a JSON array object.
  
  @param endpoint endpoint of request url
  
  @return response body to a JSON array object
  
  @throws IOException in case of any IO related issue