code: public static JSONCompareResult compareJSON(JSONArray expected, JSONArray actual, JSONComparator comparator)
              throws JSONException {
          return comparator.compareJSON(expected, actual);
      }
docs: Compares JSON object provided to the expected JSON object using provided comparator, and returns the results of
  the comparison.
  @param expected expected json array
  @param actual actual json array
  @param comparator comparator to use
  @return result of the comparison
  @throws JSONException JSON parsing error