@Override
    public final JSONCompareResult compareJSON(JSONObject expected, JSONObject actual) throws JSONException {
        JSONCompareResult result = new JSONCompareResult();
        compareJSON("", expected, actual, result);
        return result;
    }
@ Override public final JSONCompareResult compareJSON ( JSONObject expected , JSONObject actual ) throws JSONException { JSONCompareResult result = new JSONCompareResult ( ) ; compareJSON ( "" , expected , actual , result ) ; return result ; }
Compares JSONObject provided to the expected JSONObject, and returns the results of the comparison.

@param expected Expected JSONObject
@param actual   JSONObject to compare
@throws JSONException JSON parsing error