Back to Chezmoi

`jq` *query* *input*

assets/chezmoi.io/docs/reference/templates/functions/jq.md

2.70.2461 B
Original Source

jq query input

jq runs the jq query query against input and returns a list of results.

!!! example

```
{{ dict "key" "value" | jq ".key" | first }}
```

!!! warning

`jq` uses [`github.com/itchyny/gojq`][gojq], which behaves slightly
differently to the `jq` command in some [edge cases][cases].