dirty-json

Crates.iodirty-json
lib.rsdirty-json
version0.1.0
sourcesrc
created_at2020-08-09 04:42:09.640826
updated_at2020-08-09 04:42:09.640826
descriptionFix up dirty JSON string
homepagehttps://github.com/messense/dirty-json-rs
repositoryhttps://github.com/messense/dirty-json-rs.git
max_upload_size
id274536
size6,218
messense (messense)

documentation

README

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.

Commit count: 3

cargo fmt