public final class JsonDiff extends Object
This class only has one method, asJson(JsonNode, JsonNode), which
takes two JSON values as arguments and returns a patch as a JsonNode.
This generated patch can then be used in JsonPatch.fromJson(JsonNode).
Numeric equivalence is respected. When dealing with object values, operations are always generated in the following order:
Note that due to the way JsonNode is implemented, this class is
inherently not thread safe (since JsonNode is mutable). It is
therefore the responsibility of the caller to ensure that the calling context
is safe (by ensuring, for instance, that only the diff operation has
references to the values to be diff'ed).
Copyright © 2013. All Rights Reserved.