Computing inverse of merge_patch()
from
#3786
MHebes
started this conversation in
Show and tell
Replies: 1 comment
-
Any chance to integrate this to the main library? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is to
merge_patch
asdiff
is topatch
, that is:Returns an optional because the RFC was unclear to me what happens in the case of two exact json literal values. Also made the recursion simpler.
Borrowed a lot of code from the
json::diff
implementation.Example:
Beta Was this translation helpful? Give feedback.
All reactions