2 releases
Uses new Rust 2024
| 0.1.1 | Sep 29, 2025 |
|---|---|
| 0.1.0 | Sep 29, 2025 |
#1391 in Parser implementations
23KB
592 lines
fjson
fjson is a zero-dependency JSON Parser and Fixer. It takes any input and produces valid JSON. No AI involved.
Features
- Deserializes everything by default (root and nested).
- Repairs incomplete JSON by closing missing brackets and strings.
- Normalizes boolean and null values (e.g., True → true, FALSE → false).
- Normalizes numbers (removes trailing zeros, fixes invalid formats).
- Formatting (beautifier).
Example
fn main() {
let broken = r#"{ "user" "foo", "age": 0020, }"#;
let fixed = fjson_core::fix(broken);
println!("{}", fixed);
}
Output:
{
"user": "foo",
"age": 20
}
License
Copyright © 2025-present, fjson Contributors.
This project is MIT licensed.