Try inline template expression function @mergeObjects(..., ...)
It takes two JSON objects as input. It was added recently and doesn't have a public documentation yet.