jsonpath

package
v0.0.0-...-fefb669 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonPathCompile

func JsonPathCompile(jsonpath string) (jp.Expr, error)

JsonPathCompile compiles a JSONPath expression

jsonpath is the JSONPath expression returns the compiled JSONPath expression

func JsonPathGetValue

func JsonPathGetValue(path string, source any) (any, error)

JsonPathGetValue gets a value from a JSONPath expression

path is the JSONPath expression source is the JSON object to get the value from returns the value at the path

func JsonPathSetValue

func JsonPathSetValue(path string, source any, value any) error

JsonPathSetValue sets a value in a JSONPath expression

path is the JSONPath expression source is the JSON object to set the value in value is the value to set

Types

This section is empty.

Jump to

Keyboard shortcuts

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