Next Available Index
Description
Usage
.[]Example
$ echo '{"x": [1, 2]}' | dasel put int -p json '.x.[]' 3
{
"x": [
1,
2,
3
]
}Last updated
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.
This is only available in put commands.
.[]$ echo '{"x": [1, 2]}' | dasel put int -p json '.x.[]' 3
{
"x": [
1,
2,
3
]
}Last updated