Crates.io | dirty-json |
lib.rs | dirty-json |
version | 0.1.0 |
source | src |
created_at | 2020-08-09 04:42:09.640826 |
updated_at | 2020-08-09 04:42:09.640826 |
description | Fix up dirty JSON string |
homepage | https://github.com/messense/dirty-json-rs |
repository | https://github.com/messense/dirty-json-rs.git |
max_upload_size | |
id | 274536 |
size | 6,218 |
Fix up dirty JSON string
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"}"#);
}
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.