get json object count

cat file.json | jq ". | length"
Kategory
linux jq
Description
Fetches count of objects in a json file via jq.
Kontributor
iarc13
Upvotes
▲ 1