The type selector can be used to return the type of the current node.
.[@]
The type selector can return the following types:
array
map
string
int
float
bool
$ echo '{"numbers": [5, 2, 3, 1, 4]}' | dasel -r json '.[@]' "map"
Last updated 4 years ago
$ echo '{"numbers": [5, 2, 3, 1, 4]}' | dasel -r json '.numbers.[@]' "array"
$ echo '{"numbers": [5, 2, 3, 1, 4]}' | dasel -r json '.numbers.[0].[@]' "float"