The current RFC lacks compatibility when using multiple json patches, most glaringly the inability to patch patched json - for patches that are made by independent authors and thus are not aware of the others patches. Take the following initial situation:
The current RFC lacks compatibility when using multiple json patches, most glaringly the inability to patch patched json - for patches that are made by independent authors and thus are not aware of the others patches. Take the following initial situation:
Source file
Patch 1
Patch 2
As per RFC6902, the add op replaces the value if it exists, and thus we get
which means we have lost the
age
property. I propose amerge
op that merges the value if it is an object.