Crates.io | djson |
lib.rs | djson |
version | 0.1.0 |
source | src |
created_at | 2020-09-16 17:15:30.883583 |
updated_at | 2020-09-16 17:15:30.883583 |
description | Easily Access Dynamic JSON in Rust |
homepage | |
repository | https://github.com/olback/djson-rs/tree/master |
max_upload_size | |
id | 289474 |
size | 19,181 |
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);