djson

Crates.iodjson
lib.rsdjson
version0.1.0
sourcesrc
created_at2020-09-16 17:15:30.883583
updated_at2020-09-16 17:15:30.883583
descriptionEasily Access Dynamic JSON in Rust
homepage
repositoryhttps://github.com/olback/djson-rs/tree/master
max_upload_size
id289474
size19,181
Edwin (olback)

documentation

README

djson - Access Dynamic JSON in Rust

Example:

let json_str = include_str!("../test.json");

let value: Value = djson::from_str(json_str).unwrap();
let idxs = Index::parse("four[2].one").unwrap();

let res = djson::get_value(&value, &idxs);
println!("{:#?}", res);

let res = djson::get_value_dyn(&value, &[&"four", &2, &"one"]);
println!("{:#?}", res);
Commit count: 0

cargo fmt