https://github.com/messense/dirty-json-rs
Fix up dirty JSON string
https://github.com/messense/dirty-json-rs
Last synced: 9 months ago
JSON representation
Fix up dirty JSON string
- Host: GitHub
- URL: https://github.com/messense/dirty-json-rs
- Owner: messense
- License: mit
- Created: 2020-08-09T04:39:31.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-09T04:42:25.000Z (almost 6 years ago)
- Last Synced: 2025-04-23T02:16:25.236Z (about 1 year ago)
- Language: Rust
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dirty-json-rs
[](https://github.com/messense/dirty-json-rs/actions?query=workflow%3ACI)
[](https://crates.io/crates/dirty-json)
[](https://docs.rs/dirty-json)
Fix up dirty JSON string
## Features
`dirty-json` allows numberic object keys.
```rust
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](./LICENSE) file.