Length

Description

The length selector can be used to return the length of the current node.

Usage

1
.[#]
Copied!

Supported types

The length selector can be used on the following data types:
    Array/slice
    Map/object
    String

Example

1
echo '{"numbers": [5, 2, 3, 1, 4]}' | dasel -p json '.numbers.[#]'
2
5
Copied!
Last modified 6mo ago