jsonpath-rust 0.6.1

The library provides the basic functionality to find the set of the data according to the filtering query.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use jsonpath_rust::JsonPathInst;
use serde_json::json;
use std::str::FromStr;

fn main() {
    let data = json!({
        "Hello":"World",
        "Good":"Bye",
    });
    let path = JsonPathInst::from_str("$.Hello").unwrap();
    let search_result = jsonpath_rust::find(&path, &data);
    println!("Hello, {}", search_result);
}