3 releases
Uses old Rust 2015
0.1.2 | Dec 31, 2017 |
---|---|
0.1.1 | Dec 28, 2016 |
0.1.0 | Dec 28, 2016 |
#247 in Value formatting
1,336 downloads per month
Used in 3 crates
(2 directly)
6KB
136 lines
json_pretty
Simple Json prettifier for Rust language.
Installation
In Cargo.toml:
[dependencies]
json_pretty = "*"
Example
extern crate json_pretty;
use json_pretty::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);