syntax

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package jsonpath is for retrieving a part of JSON according to the JSONPath query syntax.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableMemoize

func DisableMemoize[U Uint]() func(*pegJSONPathParser[U]) error

func Parse

func Parse(jsonPath string, config ...config.Config) (f func(src any, dst ...*[]any) ([]any, error), err error)

Parse returns the parser function using the given JSONPath.

func Pretty

func Pretty[U Uint](pretty bool) func(*pegJSONPathParser[U]) error

func ResetNodeSliceSyncPool

func ResetNodeSliceSyncPool()

func Retrieve

func Retrieve(jsonPath string, src any, config ...config.Config) ([]any, error)

Retrieve returns the retrieved JSON using the given JSONPath.

func Size

func Size[U Uint](size int) func(*pegJSONPathParser[U]) error

Types

type Uint

type Uint interface {
	~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64
}

Source Files

Jump to

Keyboard shortcuts

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