Crate jsonpath_rs

Source

Modules§

json_node
json_path
select_value

Functions§

calc_once
Calc once allows to performe a one time calculation on the give query. The query ownership is taken so it can not be used after. This allows the get a better performance if there is a need to calculate the query only once.
calc_once_paths
A version of calc_once that returns only paths as Vec<Vec>.
calc_once_with_paths
A version of calc_once that returns also paths.
compile
Compile the given json path, compilation results can after be used to create PathCalculator calculator object to calculate json paths
create
Create a PathCalculator object. The path calculator can be re-used to calculate json paths on different jsons. /// ```rust extern crate jsonpath_rs #[macro_use] extern crate serde_json;
create_with_generator
Create a PathCalculator object. The path calculator can be re-used to calculate json paths on different jsons. Unlike create(), this function will return results with full path as PTracker object. It is possible to create your own path tracker by implement the PTrackerGenerator triat.