jsonpath

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(input string, path string) (interface{}, error)

func Query added in v0.8.0

func Query(v any, path string) (result any, found bool, err error)

Query evaluates path against an already decoded JSON value. A path that matches nothing (an unknown key, an index out of range, a key on a scalar) reports found=false without an error; only a malformed path is an error. A JSON null that is there is found, with a nil result.

func Valid added in v0.8.0

func Valid(path string) error

Valid reports whether path parses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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