code: public static JSONCompareResult compareJSON(String expectedStr, String actualStr, JSONCompareMode mode)
              throws JSONException {
          return compareJSON(expectedStr, actualStr, getComparatorForMode(mode));
      }
docs: Compares JSON string provided to the expected JSON string, and returns the results of the comparison.
  
  @param expectedStr Expected JSON string
  @param actualStr   JSON string to compare
  @param mode        Defines comparison behavior
  @return result of the comparison
  @throws JSONException JSON parsing error