Free online tools

JSON Merge Patch Calculator

Test how a merge patch changes a document and copy the patched result.

Enter your values

This tool processes your input in your browser.

Result

Merge object properties recursively

An object patch visits each key. A non-null member replaces or recursively patches the corresponding value. A null object member removes that key.

Replace arrays and non-object values as a whole

An array patch replaces the original array. A top-level scalar or null replaces the entire document. This is JSON Merge Patch semantics.

Frequently asked questions

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.