Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 363 Bytes

keys-and-indexes.md

File metadata and controls

24 lines (17 loc) · 363 Bytes

Keys and indexes

Description

The key/index selector is used to return a list of all keys/indexes in the current node.

Usage

{% hint style="info" %} This must be used in conjunction with the -m, --multiple flag. {% endhint %}

.-

Example

$ echo '{"a":{"c": [1, 2, 3]},"b":{}}' | dasel -p json -m '.a.c.-'
"0"
"1"
"2"