json_pretty 0.1.2

Simple Json prettifier for Rust language.
Documentation
  • Coverage
  • 0%
    0 out of 6 items documented0 out of 5 items with examples
  • Size
  • Source code size: 8.55 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.36 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • JunSuzukiJapan/json_pretty
    3 1 6
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • JunSuzukiJapan

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