Skip to main content

Module jq

Module jq 

Source
Expand description

The jq function, which applies a jq program to a jsonb value.

Programs run on jaq, a Rust implementation of jq. The available filters are jaq’s standard library minus those whose result depends on the machine or the moment (now, env, localtime, input, …), so that every replica computes the same answer. Module imports are not supported.

NOTE: jaq has no evaluation budget. A program that loops forever stalls the worker evaluating it, and a program that recurses without bound overflows that worker’s stack.

Structs§

Jq
Applies a literal jq program to a jsonb value. See JqProgram::eval.
JqProgram
A compiled jq program.

Constants§

WITHHELD 🔒
Native filters withheld from programs, because their results depend on the environment, they read input other than the argument, or they write to the process’s log or stderr.

Functions§

compile 🔒
error 🔒
exception 🔒
syntax_error 🔒
Describes a syntax error at at, a suffix of program.
to_val 🔒
Converts a jsonb datum into a jaq value.

Type Aliases§

Data 🔒
Filter 🔒