mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
Remove reference to getpath from docs
This commit is contained in:
@@ -725,10 +725,6 @@ sections:
|
|||||||
Outputs the paths to all the leaves (non-array, non-object
|
Outputs the paths to all the leaves (non-array, non-object
|
||||||
elements) in its input.
|
elements) in its input.
|
||||||
|
|
||||||
`leaf_paths` is equivalent to
|
|
||||||
|
|
||||||
def leaf_paths: . as $dot|paths|select(. as $p|$dot|getpath($p)|type|. != "array" and . != "object");
|
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
- program: '[leaf_paths]'
|
- program: '[leaf_paths]'
|
||||||
input: '[1,[[],{"a":2}]]'
|
input: '[1,[[],{"a":2}]]'
|
||||||
|
|||||||
Reference in New Issue
Block a user