Quantcast
Channel: Active questions tagged jq - Stack Overflow
Viewing all articles
Browse latest Browse all 657

How do I select multiple fields in jq?

$
0
0

My input file is newline delimited JSON (ndjson) looking something like this:

{"login": "dmaxfield","id": 7449977,  ...}{"login": "dmaxfield","id": 7449977,  ...}

I can get all the login names with this : cat members | jq '.[].login' but I have not been able to crack the syntax to get both the loginandid?


Viewing all articles
Browse latest Browse all 657

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>