Skip to content

JSON Merge Patch

Apply RFC 7396 JSON Merge Patch to a target object. The first object is the target, the second is the patch. Null values remove keys.

Input

json
loading editor…

Paste target JSON then patch JSON...
or drop a file anywhere in this pane

Output

json

Patched JSON will appear here...
press to apply patch

What Is JSON Merge Patch?

JSON Merge Patch (RFC 7396) is a format for describing changes to a JSON document. A patch is applied to a target object: values are updated, nested objects are merged recursively, and null values remove keys.

  • API Updates: Partial updates to REST resources.
  • Config Changes: Apply incremental configuration changes.
  • State Management: Merge state updates in applications.

How to Apply JSON Merge Patch

  1. Paste the target JSON object as the first block.
  2. Paste the patch JSON object as the second block (separated by newline).
  3. Click Apply Patch to merge them.

Frequently Asked Questions

How are null values handled?

Setting a value to null in the patch removes that key from the target.

Are nested objects merged?

Yes. Nested objects are merged recursively — only leaf values are replaced.

Is this tool safe?

Yes. Processing is 100% client-side.

Related Tools