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.

.-

Example

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

Last updated