]> granicus.if.org Git - jq/commitdiff
Document `arrays`, `objects`, ...
authorNicolas Williams <nico@cryptonector.com>
Thu, 13 Mar 2014 05:19:55 +0000 (00:19 -0500)
committerNicolas Williams <nico@cryptonector.com>
Thu, 13 Mar 2014 05:29:53 +0000 (00:29 -0500)
docs/content/3.manual/manual.yml

index b30ba6c49ae723e48d8ebb3107cfde68f604fd01..d681d093cebefeeb1637d2f524d084d95df600d2 100644 (file)
@@ -647,6 +647,19 @@ sections:
             input: '[1,5,3,0,7]'
             output: ['[5,3,7]']
 
+
+      - title: `arrays`, `objects`, `iterables`, `booleans`, `numbers`, `strings`, `nulls`, `values`
+        body: |
+          
+          These built-ins select only inputs that are arrays, objects,
+          iterables (arrays or objects), booleans, numbers, strings,
+          null, and any non-null values, respectively.
+
+        examples:
+          - program: '.[]|numbers'
+            input: '[[],{},1,"foo",null,true,false]'
+            output: ['1']
+
       - title: `empty`
         body: |