Skip to main content
>_devtools

JSON Merge

Deep-merge two JSON documents with array strategies, or apply an RFC 7386 JSON Merge Patch.

What this does

Enter a base document and an overlay to combine JSON values. Deep merge supports array strategies, while Merge Patch follows RFC 7386 and uses null to remove a property.

Example

Base:
{"name":"Ada","role":"user"}
Overlay:
{"role":"admin"}

Merged output:
{"name":"Ada","role":"admin"}

Limits and behavior

  • Both inputs must be valid JSON values.
  • Merge Patch replaces arrays and removes object properties whose patch value is null.