Closed adaml881 closed 1 month ago
@adaml881 not that I know of, but you could wrote a simple custom modifier (see docs) that joins all the array elements with space and returns a string. Then you could use a query like this one using multipaths to create the array of elemens you want and use your modifier:
friends.#.[first,last,!"Aged",age].@spacejoin
the above query without the modifier would output:
[["Dale","Murphy","Aged",44],["Roger","Craig","Aged",68],["Jane","Murphy","Aged",47]]
Using the dot instead of the pipe will apply the modifier to each inner array.
Amazing, thank you
Is there a way to join properties into a single property on the output?
Using this example, I'd like to be able to get an output this from the
friends
arrayExample: