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

Merge pull request #475 from qqshfox/patch-1

Fix examples for `del` in manual
This commit is contained in:
Nico Williams
2014-07-09 10:09:28 -05:00

View File

@ -658,10 +658,10 @@ sections:
examples:
- program: 'del(.foo)'
input: '[{"foo": 42, "bar": 9001, "baz": 42}]'
input: '{"foo": 42, "bar": 9001, "baz": 42}'
output: ['{"bar": 9001, "baz": 42}']
- program: 'del(.[1, 2])'
input: '[["foo", "bar", "baz"]]'
input: '["foo", "bar", "baz"]'
output: ['["foo"]']
- title: "`to_entries`, `from_entries`, `with_entries`"