D
D
Dasel
v2
Search
⌃
K
Introduction
GitHub
Supported file formats
Memory usage
Installation
Commands
Select
Put
Delete
Functions
Selector Overview
All
And
Append
Count
Equal
Filter
FilterOr
First
Index
Join
Key
Keys
Last
Len
LessThan
MapOf
Merge
MoreThan
Not
Or
Parent
Property
String
This
Type
Examples
Basics
Change file format
Filtering objects based on present/missing key
Powered By
GitBook
Keys
Keys expect no arguments.
Returns an array of keys for the current value, where the keys are either:
Object field names
Array indexes
Example
$ echo '[1,2,3,4,5]' | dasel -r json 'keys()'
[
0,
1,
2,
3,
4
]
Functions - Previous
Key
Next - Functions
Last
Last modified
5mo ago