How to get number of elements in json using jq
I'd like to get the count of elements in an json array using jq (without the elements with "name": "current" in the snapshots array). { "name": "test1", "snapshots": [ { "description": "You are here!", "name": "current", "digest": "ccc", "running": 1…