Can I use a JSON Patch array of add and remove operations?
This page implements RFC 7396 Merge Patch. RFC 6902 JSON Patch is a separate operation format.
Test how a merge patch changes a document and copy the patched result.
An object patch visits each key. A non-null member replaces or recursively patches the corresponding value. A null object member removes that key.
An array patch replaces the original array. A top-level scalar or null replaces the entire document. This is JSON Merge Patch semantics.
This page implements RFC 7396 Merge Patch. RFC 6902 JSON Patch is a separate operation format.