1 unstable release
0.1.0 | Aug 9, 2020 |
---|
#1099 in #json
4KB
dirty-json-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.
Dependencies
~28KB