Search notes:

jq -n

jq -n (or jq --null-input) runs the filter once with null as input (for example to construct JSON data from scratch)
$ jq -n '{id: (1,2,3)}'
{
  "id": 1
}
{
  "id": 2
}
{
  "id": 3
}
The same output can also be produced with jq -n '{id: range(3)}'.

Index