jsonpath

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const JacksonExpressPrefix = "$."

Variables

This section is empty.

Functions

func Get

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

func JQ

func JQ(jsonInput, filter string) (interface{}, error)

func Jackson

func Jackson(jsonInput, filter string) (interface{}, error)

use jackson-path command to parse json

func Set

func Set(data interface{}, path string, value interface{}) error

Types

type DoesNotExist

type DoesNotExist struct{}

func (DoesNotExist) Error

func (d DoesNotExist) Error() string

Jump to

Keyboard shortcuts

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