Let's say I have an endpoint that returns the following array:
[
{"name": "Joe", "age": 21},
{"name": "Steve", "age": 27},
{"name": "Michelle", "age": 32},
{"name": "Joe", "age": 23},
]
I know I can get all names using the following command (using httpie):
http https://some-endpoint | jq '.[] | .name'
# output
Joe
Steve
Michelle
Joe
How can I get all unique names (so there are no duplicates)?