json_pretty

Crates.iojson_pretty
lib.rsjson_pretty
version0.1.2
sourcesrc
created_at2016-12-28 10:02:47.814924
updated_at2017-12-31 13:07:40.9005
descriptionSimple Json prettifier for Rust language.
homepage
repositoryhttps://github.com/JunSuzukiJapan/json_pretty
max_upload_size
id7815
size8,923
(JunSuzukiJapan)

documentation

README

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);
Commit count: 10

cargo fmt