Keys and indexes

Description

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

Usage

This must be used in conjunction with the -m, --multiple flag.
1
.-
Copied!

Example

1
echo '{"a":{"c": [1, 2, 3]},"b":{}}' | dasel -p json -m '.a.c.-'
2
"0"
3
"1"
4
"2"
Copied!
Last modified 6mo ago
Copy link