Documentation ¶
Overview ¶
Package jsonpointer implements RFC6901 JSON Pointers
Index ¶
- func Find(data []byte, path string) ([]byte, error)
- func FindDecode(data []byte, path string, into interface{}) error
- func FindMany(data []byte, paths []string) (map[string][]byte, error)
- func Get(m map[string]interface{}, path string) interface{}
- func ListPointers(data []byte) ([]string, error)
- func Reflect(o interface{}, path string) interface{}
- func ReflectListPointers(o interface{}) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindDecode ¶
FindDecode finds an object by JSONPointer path and then decode the result into a user-specified object. Errors if a properly formatted JSON document can't be found at the given path.
func ListPointers ¶
ListPointers lists all possible pointers from the given input.
func Reflect ¶
func Reflect(o interface{}, path string) interface{}
Reflect gets the value at the specified path from a struct.
func ReflectListPointers ¶
ReflectListPointers lists all possible pointers from the given struct.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.