blob: 09da541178224885e761f4017592daf97adce955 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
---
tags:
- jq
- json
---
`jq` is a filter program. Everything , including literals, are `filters` in jq.
filter have input and output.
ops that combine filters like addition or division feed same input to both filters before doing the operation e.g `[1 2 3] | add / length` < array is passd to both add and length and then de division is done.
identity filter use quotes or brackets and quotes if name has special values such as whitespace. `."Fo o"` || `.["Fo o"]`
|