1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
| # Identity
.
# Field access
.field
.field.nested
# Array access
.[0]
.[-1]
.[2:5]
# Iterate array
.[]
# Pipe
.[] | .name
# Collect into array
[.[] | .name]
# Object construction
{newkey: .oldkey}
# Conditionals
if COND then A else B end
VALUE // DEFAULT
# Comparison
==, !=, <, >, <=, >=
and, or, not
# Array functions
map(f), select(f), sort_by(f), group_by(f), unique, length, first, last, nth(n), flatten, reverse, contains(x), inside(x), add, min, max
# String functions
split(s), join(s), test(re), match(re), gsub(re;s), ascii_downcase, ascii_upcase, ltrimstr(s), rtrimstr(s), startswith(s), endswith(s)
# Object functions
keys, values, has(k), in(o), to_entries, from_entries, with_entries(f)
# Type functions
type, isnumber, isstring, isnull, isboolean, isarray, isobject
|