The key/index selector is used to return a list of all keys/indexes in the current node.
This must be used in conjunction with the -m, --multiple flag.
-m
--multiple
.-
$ echo '{"a":{"c": [1, 2, 3]},"b":{}}' | dasel -p json -m '.a.c.-' "0" "1" "2"
Last updated 4 years ago