djson 0.1.0

Easily Access Dynamic JSON in Rust
Documentation
  • Coverage
  • 0%
    0 out of 8 items documented0 out of 2 items with examples
  • Size
  • Source code size: 21.04 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.15 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • olback

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);