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

Fix examples for del in manual

This commit is contained in:
Hanfei Shen
2014-07-09 16:31:25 +08:00
parent 1d620c0de3
commit ecac7bd3a1

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`"