jq

package
v1.0.40357-pre Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package jq facilitates processing of JSON strings using jq expressions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Evaluate

func Evaluate(r io.Reader, w io.Writer, opts Options) error

Evaluate runs a jq expression against the JSON in r and writes the results to w. Scalar results are written as raw strings (no quotes); objects and arrays are marshalled as JSON, optionally with indentation and color.

Types

type Options

type Options struct {
	Expr     string
	Indent   string
	Colorize bool
}

Options controls how Evaluate formats its output.

Jump to

Keyboard shortcuts

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