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!
Last modified 6mo ago
Copy link