json_path 0.1.5

A Rust implementation of JsonPath
Documentation
1
2
3
4
5
6
7
8
9
use json_path::JsonPathQuery;
use serde_json::json;

#[test]
fn json_path_query_api_works() {
    let json = json!({"greetings": "hello, json_path"});
    let result = json.query("$['greetings']");
    assert_eq!(Ok(json!("hello, json_path")), result);
}