jq

package
v0.0.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package jq implements a bounded, read-only jq subset without external code or data.

Index

Constants

View Source
const (
	MaxFileOperands       = 64
	MaxVariableBindings   = 64
	MaxVariableBytes      = 1 << 20
	MaxVariableNodes      = MaxValueNodes
	MaxVariableValueBytes = MaxValueBytes
)
View Source
const (
	MaxFilterBytes     = 64 << 10
	MaxTotalInputBytes = 8 << 20
	MaxRawLineBytes    = 1 << 20
	MaxNestingDepth    = 64
	MaxFilterNodes     = 4_096
	MaxValueNodes      = 65_536
	MaxValueBytes      = 4 << 20
	MaxIntegerBits     = 256
	MaxEvalSteps       = 100_000
	MaxResults         = 10_000
	MaxResultNodes     = 2 * MaxValueNodes
	MaxResultBytes     = 8 << 20
	MaxOutputBytes     = 1 << 20
)

Limits are per invocation, including inputs that never reach EOF.

Variables

View Source
var Cmd = builtins.Command{
	Name:          "jq",
	Description:   "process JSON with bounded read-only filters",
	MakeFlags:     registerFlags,
	NormalizeArgs: normalizeVariableArgs,
}

Cmd is the jq builtin command descriptor.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL