Expand description
Standard library for a JSON query language.
The standard library provides a set of filters.
These filters are either implemented as definitions or as functions.
For example, the standard library provides the map(f)
filter,
which is defined using the more elementary filter [.[] | f]
.
If you want to use the standard library in jaq, then
you’ll likely only need funs
and defs
.
Most other functions are relevant if you
want to implement your own native filters.
Traits§
- ValT
- Values that the core library can operate on.
Functions§
- base_
funs - Minimal set of filters that are generic over the value type.
Return the minimal set of named filters available in jaq
which are implemented as native filters, such as
length
,keys
, …, but notnow
,debug
,fromdateiso8601
, … - defs
- Definitions of the standard library.
- extra_
funs - Supplementary set of filters that are generic over the value type.
- funs
- Named filters available by default in jaq
which are implemented as native filters, such as
length
,keys
, …, but alsonow
,debug
,fromdateiso8601
, … - run
- Convert a filter with a run pointer to a native filter.
- unary
- Create a filter that takes a single variable argument and whose output is given by
the function
f
that takes the input value and the value of the variable. - v
- Creates
n
variable arguments.
Type Aliases§
- Filter
- Name, arguments, and implementation of a filter.