Package org.apache.cayenne.value.json
Class JsonUtils
java.lang.Object
org.apache.cayenne.value.json.JsonUtils
Simple utils to process JSON.
- Since:
- 4.2
- See Also:
- 
Method Summary
- 
Method Details- 
normalizeCleanup and reformat any valid JSON string. Generally this methods just removes unnecessary whitespaces in the document.- Parameters:
- json- valid JSON document
- Returns:
- normalized JSON
 
- 
compareMethod 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 value
- json2- second value
- Returns:
- true if documents are equal
 
 
-