I Am Going to Forget These

No Record for 'How to Get an Element of all Elements within an JSON Array via jq'

Assuming you have a JSON array, each of which has a field labeled “foo”, you get all “foo” fields thusly:

<output JSON string to stdout> | jq '.[] | {"foo"}'

Why do I keep forgetting this?

Hat tip: jq