JSON Merger
Merge the two JSON values inside {"first":…,"second":…}: arrays are concatenated, objects are shallow-merged with the second one overriding duplicate keys. Parsing stays in your browser.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Provide one object with first and second: two arrays are concatenated, two objects are shallow-merged with the second one winning on duplicate keys.
Merged JSON
Arrays are concatenated in first→second order; objects get a single-level merge where the second object overrides duplicate keys. No deep merge.
Paste JSON with first / second to see the merged result
What this tool does
- Join two separately exported JSON arrays into one complete list before deduplicating or counting
- Merge a default config object with a project config so the latter overrides matching keys
Example
Input
{"first":[{"id":1},{"id":2}],"second":[{"id":3}]}Output
[
{
"id": 1
},
{
"id": 2
},
{
"id": 3
}
]The two arrays are concatenated as-is; duplicates are not removed.
Frequently asked questions
Is this a deep (recursive) merge?
No. Objects get a single-level shallow merge: when a key exists in both, the second value replaces the first entirely, even if both values are objects.
Can I merge an array with an object?
No. Both sides must be arrays or both must be objects, otherwise the input is rejected.
Is the input shape fixed?
Yes. The input must be an object with the fields first and second (order does not matter); any other fields are ignored.
Are duplicate items removed?
No. Arrays are concatenated in first-then-second order and duplicates stay. Use a dedupe tool afterwards if needed.
Keywords:json mergerconcat json