Solved
Forum Discussion
cjhoward18
3 years agoEmployee
Assuming your input is a single document with an array of objects, rather than a stream of individual documents.
With that assumption you can use a mapper with the expression:
jsonPath($, "$[*].tree")
and target path: tree
This will collect all tree objects from every element in the array, then write that list to the target path tree