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

Download history 353/week @ 2024-01-04 342/week @ 2024-01-11 355/week @ 2024-01-18 324/week @ 2024-01-25 219/week @ 2024-02-01 204/week @ 2024-02-08 191/week @ 2024-02-15 165/week @ 2024-02-22 143/week @ 2024-02-29 183/week @ 2024-03-07 168/week @ 2024-03-14 225/week @ 2024-03-21 329/week @ 2024-03-28 280/week @ 2024-04-04 310/week @ 2024-04-11 382/week @ 2024-04-18

1,336 downloads per month
Used in 3 crates (2 directly)

Custom license

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

No runtime deps