Crates.io | jsonpath-plus |
lib.rs | jsonpath-plus |
version | 0.1.9 |
source | src |
created_at | 2022-02-04 01:37:02.274852 |
updated_at | 2022-02-17 16:13:15.551455 |
description | A JSONPath implementation in Rust, compliant with the Proposal A specification as well as including several extensions such as parent and subpath selectors. |
homepage | |
repository | https://github.com/CraftSpider/jsonpath-plus |
max_upload_size | |
id | 526522 |
size | 114,246 |
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.
^
, used as $.a.b.^
or $['a']['b'][^]
. Matches the parent of
the currently selected object.$['a'][$.b.id]
or $['a'][@.sum.id]
. Evaluates the
subpath, then selects items with keys same as the result of the subpath.~
, used at the end of the path as @.a.b~
or $['a']['b']~
. Can be
used in filters to compare against the ID of a matched item. Doesn't yet work at
the top level.