flatten_json 0.1.0

Lib to flatten nested JSON
Documentation
  • Coverage
  • 0%
    0 out of 9 items documented0 out of 6 items with examples
  • Size
  • Source code size: 7.82 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.55 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • gtors/flatten_json
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • gtors

Usage example

extern crate flatten_json;

use flatten_json::flatten_from_str;

fn main() {
    let json = r#"
        {
            "user": {
                "name": "tom",
                "id": 115026,
            },
            "role": "AUTHOR",
            "status": "APPROVED"
        }
    #";

    let flat_json = flatten_from_str(json).unwrap();
    println!("{}", flat_json);
    // {"user.name":"tom","user.id":115026,"role":"AUTHOR","status":"APPROVED"}
}