Relative Content

Tag Archive for jsonata

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.