aboutsummaryrefslogtreecommitdiff
path: root/content/snippets/jq-count-json-items.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/snippets/jq-count-json-items.md')
-rw-r--r--content/snippets/jq-count-json-items.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/content/snippets/jq-count-json-items.md b/content/snippets/jq-count-json-items.md
new file mode 100644
index 0000000..1093bfb
--- /dev/null
+++ b/content/snippets/jq-count-json-items.md
@@ -0,0 +1,9 @@
+---
+title: Count items in JSON file using jq
+description: Count items in JSON file using jq
+tags: ["jq", "commandline"]
+---
+
+```console
+jq -s '. | length' sample_data.json
+```