Count the number of leaves (non-object nodes) in a .JSON file


jq '[paths(scalars)]|length' translations.json

Tags:  json

Share: