jsonpath

package
v0.0.0-...-4ebe608 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expression

type Expression struct {
	// contains filtered or unexported fields
}

Expression is a JSONPath expression.

func MakeExpression

func MakeExpression[T StringOrBytes](jp T) (Expression, error)

func NewExpression

func NewExpression[T StringOrBytes](jp T) (*Expression, error)

func (Expression) String

func (e Expression) String() string

type PathFinder

type PathFinder struct {
	// contains filtered or unexported fields
}

PathFinder resolves a JSONPath Expression s against a json.Document or a dynamic.JSON structure.

func New

func New() *PathFinder

func (*PathFinder) Get

func (p *PathFinder) Get(root json.Document, expr Expression) iter.Seq[json.Document]

func (*PathFinder) GetDynamic

func (p *PathFinder) GetDynamic(root dynamic.JSON, expr Expression) iter.Seq[dynamic.JSON]

func (*PathFinder) Pointers

func (p *PathFinder) Pointers(root json.Document, expr Expression) iter.Seq[json.Pointer]

type StringOrBytes

type StringOrBytes interface {
	string | []byte
}

Jump to

Keyboard shortcuts

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