Paste two JSON objects separated by a blank line
๐Ÿ“ Input
๐Ÿ“ค Result
Waiting for input...
Drop file to upload

Merge JSON Online โ€” Free JSON Deep Merger

Deep merge two JSON objects โ€” the second object overwrites and extends the first. Useful for combining configuration files, API responses, or default settings with overrides.

Step 1: Paste two JSON objects

Paste two JSON objects separated by a blank line. The second object will be merged into the first. Nested objects are recursively merged.

How is deep merge different from spread?

JavaScript spread ({...a, ...b}) only does shallow merge. Our deep merge recursively combines nested objects while preserving existing keys from the first object.

What happens to arrays?

Arrays from the second object replace arrays in the first. They are not merged element-by-element. For array concatenation, modify the output manually.