jsonpath

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONPathEngine

type JSONPathEngine struct{}

func NewJSONPathEngine

func NewJSONPathEngine() *JSONPathEngine

func (*JSONPathEngine) ExtractFields

func (e *JSONPathEngine) ExtractFields(jsonStr string, fields []string) (map[string]interface{}, error)

func (*JSONPathEngine) FilterByKeys

func (e *JSONPathEngine) FilterByKeys(jsonStr string, keepKeys []string) (string, error)

func (*JSONPathEngine) Query

func (e *JSONPathEngine) Query(jsonStr, path string) (*JSONPathResult, error)

type JSONPathResult

type JSONPathResult struct {
	Value    interface{} `json:"value"`
	Original string      `json:"original"`
	Filtered int         `json:"filtered"`
}

Jump to

Keyboard shortcuts

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