mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
Document .foo.bar in manual
This commit is contained in:
@@ -190,7 +190,7 @@ sections:
|
|||||||
input: '"Hello, world!"'
|
input: '"Hello, world!"'
|
||||||
output: ['"Hello, world!"']
|
output: ['"Hello, world!"']
|
||||||
|
|
||||||
- title: "`.foo`"
|
- title: "`.foo`, `.foo.bar`"
|
||||||
body: |
|
body: |
|
||||||
|
|
||||||
The simplest *useful* filter is `.foo`. When given a
|
The simplest *useful* filter is `.foo`. When given a
|
||||||
@@ -200,6 +200,8 @@ sections:
|
|||||||
If the key contains special characters, you need to surround
|
If the key contains special characters, you need to surround
|
||||||
it with double quotes like this: `."foo$"`.
|
it with double quotes like this: `."foo$"`.
|
||||||
|
|
||||||
|
A filter of the form `.foo.bar` is equivalent to `.foo|.bar`.
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
- program: '.foo'
|
- program: '.foo'
|
||||||
input: '{"foo": 42, "bar": "less interesting data"}'
|
input: '{"foo": 42, "bar": "less interesting data"}'
|
||||||
|
|||||||
Reference in New Issue
Block a user