filter

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package filter provides JQ filtering for response bodies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyJQ

func ApplyJQ(input string, filterExpr string) (string, error)

ApplyJQ applies a jq filter expression to the given JSON input string. Returns the filtered result as a string. If the filter produces multiple values, they are joined with newlines.

func EvalJQBool

func EvalJQBool(input string, expr string) (bool, error)

EvalJQBool evaluates a JQ expression and returns true if it evaluates to boolean true. Used for assertion checking in chains.

Types

This section is empty.

Jump to

Keyboard shortcuts

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