@Christoph-Hart 31, the values from the second array should overwrite those in the first array.

@Christoph-Hart said in How to merge complex arrays of objects?:

looks like you have a fixed depth hierarchy that you can just handcode.

In this example but that could be different in the real thing.