dirty-json 0.1.0

Fix up dirty JSON string
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 6.07 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1 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
  • Homepage
  • messense/dirty-json-rs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • messense

dirty-json-rs

GitHub Actions Crates.io docs.rs

Fix up dirty JSON string

Features

dirty-json allows numberic object keys.

fn main() {
    let json = r#"{1: "foo", 2 : "bar"}"#;
    let fixed = dirty_json::fix(json);
    assert_eq!(fixed, r#"{"1":"foo","2":"bar"}"#);
}

License

This work is released under the MIT license. A copy of the license is provided in the LICENSE file.