All indexes

Description

The all indexes selector allows you to target all items of a list or map.

Usage

This must be used in conjunction with the -m, --multiple flag.
.[*]

Example

Array

$ echo '{"x": [1, 2, 3]}' | dasel select -m -p json '.x.[*]'
1
2
3

Object/Map

$ echo '{"x": {"x": 1, "y": 2, "z": 3}}' | dasel select -m -p json '.x.[*]'
1
2
3
Copy link
Edit on GitHub