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
- Paste the target JSON object as the first block.
- Paste the patch JSON object as the second block (separated by newline).
- 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
- JSON Merge — Deep merge JSON objects
- JSON Sort Keys — Sort keys in result