Skip to main content

Module parser

Module parser 

Source
Expand description

JSONPath parser for JSONB queries.

Supports a subset of JSONPath syntax:

  • $ - root element
  • .field or ['field'] - object field access
  • [0] - array index access
  • [0:10] - array slice
  • [*] - wildcard (all elements)
  • ..field - recursive descent
  • [?(@.price < 10)] - filter expressions

Structs§

ParseError
Error type for JSONPath parsing.

Enums§

CompareOp
Comparison operators for predicates.
JsonPath
A parsed JSONPath expression.
JsonPathPredicate
A predicate for filter expressions.
PredicateValue
Values that can appear in predicates.