Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Iterator ¶
Iterator allows to traverse a tree data structure
func NewIterator ¶
NewIterator initializes an iterator to a JSON document taken as input
type PathElem ¶
type PathElem struct { Path []string Value *gjson.Result // contains filtered or unexported fields }
PathElem is an element inside a JSON tree, identified by a JSON value and a path inside the overall JSON document
type Type ¶
type Type int
Type represents a JSON type
const ( // Null is a JSON null value and default value if a value is not set Null Type = iota // Number is JSON number Number // Bool is a JSON boolean Bool // String is a JSON string String // Object is a JSON object Object // Array is a JSON array Array // Any represents any JSON data type (including null) and is only used as a "all-matcher" for // the checkType function Any )
func GetJSONType ¶
GetJSONType returns the type of a gjson.Result, mapping its gjson.Type to the internally used one
Click to show internal directories.
Click to hide internal directories.