For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

.[]

Example

$ echo '{"x": [1, 2]}' | dasel put int -p json '.x.[]' 3
{
  "x": [
    1,
    2,
    3
  ]
}

Last updated