Json – How can I get a single result object in jq?
I have a JSON file like this: { "cases": [ {"id": "1", "count": 2, "ignore": "f"}, {"id": "2", "count": 7, "ignore": "o"}, {"id": "3", "count": 11, "ignore": "o"} ] } Doing jq '.cases[] | { "(.id)" : .count }' test.json…