JSON Merge

Combine two JSON documents into one nested object.

How it works

Nested objects merge recursively, scalar values from the second document win, and arrays replace the first value.

Example