π
π
π
π
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
Next Available Index
Description
The next available index selector allows you to target the next available index of an array.
You can think of this as appending to a list.
Usage
This is only available in
put
commands.
1
.
[]
Copied!
Example
1
echo
'{"x": [1, 2]}'
|
dasel put int -p json
'.x.[]'
3
Copied!
1
{
2
"x"
:
[
3
1
,
4
2
,
5
3
6
]
7
}
Copied!
Selectors - Previous
Index
Next - Selectors
All indexes
Last modified
1yr ago
Copy link
Contents
Description
Usage
Example