| Modifier and Type | Method and Description |
|---|---|
static boolean |
compare(String json1,
String json2)
Method that compares two JSON documents.
|
static String |
normalize(String json)
Cleanup and reformat any valid JSON string.
|
public static String normalize(String json)
json - valid JSON documentpublic static boolean compare(String json1, String json2)
Method that compares two JSON documents.
This methods will parse documents so it will ignores object keys ordering and whitespaces.
json1 - first valuejson2 - second valueCopyright © 2001–2021 Apache Cayenne. All rights reserved.