π
π
π
π
Dasel
Searchβ¦
π
π
π
π
Dasel
Introduction
Installation
Use as a go package
Github
Playground
Usage
Select
Put
Put object
Put document
Delete
Validate
Flags
Supported file types
Selectors
Introduction
Property
Keys and indexes
Index
Next Available Index
All indexes
Dynamic
Search
Length
Type
Notes
File formatting and ordering
Memory usage
Converting between formats
Examples
JQ to Dasel
YQ to Dasel
XML
Filter JSON API results
Powered By
GitBook
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!
Selectors - Previous
Search
Next - Selectors
Type
Last modified
23h ago
Copy link
Edit on GitHub
Contents
Description
Usage
Supported types
Example