Class JsonUtils
java.lang.Object
org.apache.cayenne.value.json.JsonUtils
-
Method Summary
-
Method Details
-
normalize
-
compare
Method that compares two JSON documents.
NOTE this method doesn't parse numbers so same numbers in different format will be different.
This methods will parse documents so it will ignores object keys ordering and whitespaces.- Parameters:
json1- first valuejson2- second value- Returns:
- true if documents are equal
-