Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Expression ¶
type Expression struct {
// contains filtered or unexported fields
}
Expression is a JSONPath expression.
func MakeExpression ¶
func MakeExpression[T StringOrBytes](jp T) (Expression, error)
func NewExpression ¶
func NewExpression[T StringOrBytes](jp T) (*Expression, error)
func (Expression) String ¶
func (e Expression) String() string
type PathFinder ¶
type PathFinder struct {
// contains filtered or unexported fields
}
PathFinder resolves a JSONPath Expression s against a json.Document or a dynamic.JSON structure.
func New ¶
func New() *PathFinder
func (*PathFinder) Get ¶
func (p *PathFinder) Get(root json.Document, expr Expression) iter.Seq[json.Document]
func (*PathFinder) GetDynamic ¶
func (p *PathFinder) GetDynamic(root dynamic.JSON, expr Expression) iter.Seq[dynamic.JSON]
func (*PathFinder) Pointers ¶
func (p *PathFinder) Pointers(root json.Document, expr Expression) iter.Seq[json.Pointer]
type StringOrBytes ¶
Click to show internal directories.
Click to hide internal directories.