Length
Description
Usage
.[#]Supported types
Example
$ echo '{"numbers": [5, 2, 3, 1, 4]}' | dasel -p json '.numbers.[#]'
5Last updated
The length selector can be used to return the length of the current node.
.[#]The length selector can be used on the following data types:
Array/slice
Map/object
String
$ echo '{"numbers": [5, 2, 3, 1, 4]}' | dasel -p json '.numbers.[#]'
5Last updated