This is a modification upon rfc6902-json-diff
that doesn't satisfy RFC6902.
Changes :
- for leaf operations
- upon an
add
orreplace
operation, retain the new value in anewValue
property - upon a
remove
orreplace
operation, retain the new value in anoldValue
property - if values of a field referred to by an identical path are equal (according to
lodash.isEqual
) across the compared objects, this is considered as akeep
operation. BothnewValue
andoldValue
are defined
- upon an
- no change for non-leaf nodes