Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jq get length of array

# /tmp/test.json contains [1, 2, 3]
jq length /tmp/test.json
# => 3
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jq #length #array
ADD COMMENT
Topic
Name
8+7 =