|0.1.9||Feb 17, 2022|
|0.1.8||Feb 12, 2022|
#9 in #jsonpath
1,499 downloads per month
Used in 7 crates (3 directly)
Rust JSONPath Plus
An implementation of the JSONPath A spec in Rust, with several extensions added on.
This library also supports retrieving AST analysis of compiled paths, so users may implement syntax highlighting or nice error reporting on top of it.
- Parent selector
^, used as
$['a']['b'][^]. Matches the parent of the currently selected object.
- Subpath selectors, used as
$['a'][@.sum.id]. Evaluates the subpath, then selects items with keys same as the result of the subpath.
- ID selector
~, used at the end of the path as
$['a']['b']~. Can be used in filters to compare against the ID of a matched item. Doesn't yet work at the top level.