Merge pull request #523 from eproxus/patch-1
Add example of selecting object with keys
This commit is contained in:
commit
c3d6d5fd37
1 file changed
+3
@@ -710,6 +710,9 @@ sections:
|
||||
- program: 'map(select(. >= 2))'
|
||||
input: '[1,5,3,0,7]'
|
||||
output: ['[5,3,7]']
|
||||
- program: '.[] | select(.id == "second")'
|
||||
input: '[{"id": "first", "val": 1}, {"id": "second", "val": 2}]'
|
||||
output: '{"id": "second", "val": 2}'
|
||||
|
||||
|
||||
- title: "`arrays`, `objects`, `iterables`, `booleans`, `numbers`, `strings`, `nulls`, `values`, `scalars`"
|
||||
|
||||
Reference in new issue
Block a user