jq counting lenght of an array

echo '[{"username":"user1"},{"username":"user2"}]' | jq '. | length'

Last updated