jsonpath

package
v0.29.3 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(obj map[string]interface{}, expression string) ([]interface{}, error)

Get evaluates the JSONPath expression to extract values from the input map. Returns the node values that were found (zero or more), or an error. For details about the JSONPath expression language, see: https://goessner.net/articles/JsonPath/

func Set

func Set(obj map[string]interface{}, expression string, value interface{}) (int, error)

Set evaluates the JSONPath expression to set a value in the input map. Returns the number of matching nodes that were updated, or an error. For details about the JSONPath expression language, see: https://goessner.net/articles/JsonPath/

Types

This section is empty.

Jump to

Keyboard shortcuts

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