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


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

Date: 2016-08-09

Tags:  json

Share: