1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Document arrays, objects, ...

This commit is contained in:
Nicolas Williams
2014-03-13 00:19:55 -05:00
parent 68f41097b9
commit 1a1adf73e8

View 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: |