Files
cli/vendor/jsonpath-rust/examples/hello-world.rs

13 lines
295 B
Rust

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