You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to store a diffs between versions of a JSON. I can do it using collecting a diffs (RFC-6902). However with multiple changes I need to store big list of operations to be later applied. Since the library allows to apply merge patch to a JSON (RFC-7386) I think it would be very useful to be able to produce such merge patch having two JSONs. Is there a reason why it's not supported? Is it planned?
Thanks in advance
The text was updated successfully, but these errors were encountered:
I was wondering the same thing. In my client application, I call a patch endpoint which expects a merge patch. I would like to generate this patch given the original data and the modified one (two json nodes). The API then applies the patch and persists the updated data.
The problem is that there is no way to generate this patch, although we can apply it if we previously created it in some way.
I wrote a method as follows, it may be useful for some (not sure if it complies completely to RFC-7386):
Hi guys
I want to store a diffs between versions of a JSON. I can do it using collecting a diffs (RFC-6902). However with multiple changes I need to store big list of operations to be later applied. Since the library allows to apply merge patch to a JSON (RFC-7386) I think it would be very useful to be able to produce such merge patch having two JSONs. Is there a reason why it's not supported? Is it planned?
Thanks in advance
The text was updated successfully, but these errors were encountered: