Combine two JSON documents into one nested object.
Nested objects merge recursively, scalar values from the second document win, and arrays replace the first value.