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