π
π
π
π
Dasel
Searchβ¦
π
π
π
π
Dasel
Introduction
Installation
Use as a go package
Github
Playground
Usage
Select
Put
Put object
Put document
Delete
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
Type
Description
The type selector can be used to return the type of the current node.
Usage
1
.[@]
Copied!
Return types
The type selector can return the following types:
array
map
string
int
float
bool
Example
1
echo
'{"numbers": [5, 2, 3, 1, 4]}'
|
dasel -r json
'.[@]'
2
"map"
Copied!
1
echo
'{"numbers": [5, 2, 3, 1, 4]}'
|
dasel -r json
'.numbers.[@]'
2
"array"
Copied!
1
echo
'{"numbers": [5, 2, 3, 1, 4]}'
|
dasel -r json
'.numbers.[0].[@]'
2
"float"
Copied!
Selectors - Previous
Length
Next - Notes
File formatting and ordering
Last modified
6mo ago
Copy link
Contents
Description
Usage
Return types
Example