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

Documented del command

This commit is contained in:
Santiago Lapresta
2014-05-21 01:23:28 +02:00
parent d46f5d29fa
commit 072ebb911b

View File

@@ -607,6 +607,20 @@ sections:
input: '[[0,1], ["a","b","c"]]'
output: ['[false, true]']
- title: `del`
body: |
The builtin function `del` removes a key and its corresponding
value from an object.
examples:
- program: 'del(.foo)'
input: '[{"foo": 42, "bar": 9001, "baz": 42}]'
output: ['{"bar": 9001, "baz": 42}']
- program: 'del(.[1, 2])'
input: '[["foo", "bar", "baz"]]'
output: ['["foo"]']
- title: `to_entries`, `from_entries`, `with_entries`
body: |