For basic JSON tasks (e.g., querying, counting) I use the jq command-line utility. To get a count of the items in a JSON object use the following command: Still interested? Check out the full tutorial and the manual.
Tag Archive: JSON
Nov 12 2014
Permanent link to this article: http://ericsilva.org/2014/11/12/counting-items-in-json-object/
Permanent link to this article: http://ericsilva.org/2012/07/11/mongodb-and-nosql/