Simple Json prettifier for Rust language.
In Cargo.toml:
[dependencies]
json_pretty = "*"
``` extern crate jsonpretty; use jsonpretty::PrettyFormatter;
// ...
let s = r#"{"description": "string for test", "id" : 123, "true" : true}"#; let formatter = PrettyFormatter::from_str(s); let result = formatter.pretty(); println!("s: {}", result); ```