Forum Discussion
ptaylor
7 years agoEmployee
Actually, here’s a much simpler pipeline to accomplish the same. Note that both of these pipelines resolve the name conflict between the “Total” and “TotalGross” fields in the root object vs the TransactionItem objects by renaming either the child fields (first pipeline) or the root fields (second pipeline).
JSON flatten 2_2018_11_28.slp (13.9 KB)
tstack
7 years agoFormer Employee
You could also concatenate the two arrays together and then use a single JsonSplitter on the resulting array:
$TransactionItems.concat($TransactionMedias)
The Copy/Union can also be removed then as well.
- ptaylor7 years agoEmployee
Here’s a pipeline using Tim’s tip:
JSON flatten 3_2018_11_29.slp (10.9 KB)
- arvindnsn7 years agoContributor
Thanks a lot. Nice to learn to concat the arrays and manipulate them. The attached pipeline is exactly what i needed. Thanks again.