After grouping, is there a way to put the groups back into an array?
I’m using JSONata to transform a flat list of objects into a more complex structure. I used grouping to create the objects the way I want. Problem is it creates a dictionary of objects where the key is the value of the objects. What I want is to put them into an array instead. Can this be done? Will I need to use a function? I tried using $spread
but that didn’t seem to do what I was wanting.
Maintaining data structure while filtering out nodes in JSONata
Our company sells subscriptions. On renewal we want to get the subscription data, remove the discount rateplancharge, and maintain the entire data structure for other downstream processes. Here is my JSON :
how to merge children to an array in jsonata
How can I merge the objects from “123” and “Trilby hat”