JMESPath.rs
Rust implementation of JMESPath, a query language for JSON.
This crate is on crates.io and can be used
by adding jmespath
to the dependencies in your project's Cargo.toml
.
[]
= "0.0.1"
extern crate jmespath;
let expr = new.unwrap;
// Parse some JSON data into a JMESPath variable
let json_str = "{\"foo\":{\"bar\":{\"baz\":true}}}";
let data = from_json.unwrap;
// Search the data with the compiled expression
let result = expr.search.unwrap;
assert_eq!;