Combine two JSON values with recursive object merging and a chosen array strategy.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Both values are parsed, plain objects merge recursively, scalar conflicts use the later value, and arrays replace, concatenate, or concatenate uniquely according to the selected strategy. The result is serialized with indentation.
{"database": {"host": "localhost", "port": 5432}, "logging": {"level": "info"}}
{
"database": {
"host": "localhost",
"port": 5432
},
"logging": {
"level": "info"
}
}
Configuration overlays, deployment defaults, and scenario fixtures combine JSON objects.