JSON Merge
Combine two JSON documents into one, merging objects deeply. Lists can be replaced, joined, merged without duplicates or merged by position.
Processed on your device. Files are not uploaded
How to merge two JSON documents
Paste both documents
The second one wins wherever the two disagree.
Choose how lists merge
Replace, join, join without duplicates, or merge item by item.
Copy or download
Use the merged document.
Worked example
This is what JSON Merge gives for its own sample values. Open the tool above and change anything to try your own.
First JSON
{
"name": "app",
"tags": ["a", "b"],
"settings": { "theme": "light", "lang": "en" }
}Second JSON (wins on conflicts)
{
"tags": ["b", "c"],
"settings": { "theme": "dark" },
"debug": true
}- Lists
- Replace with the second
- Indentation
- 2 spaces
Merged JSON
{
"name": "app",
"tags": [
"b",
"c"
],
"settings": {
"theme": "dark",
"lang": "en"
},
"debug": true
}About JSON Merge
Combine two JSON documents into one by merging objects deeply. It suits layering a local config over defaults, or combining API responses.
FAQs
What wins on a conflict?
The value in the second document.
How are lists merged?
You choose: replace, join, join without duplicates, or merge by position.
Can I see what is different first?
Use JSON Diff.