json-fix 0.1.1

Robust JSON repair engine for fixing malformed or partial JSON strings, especially from AI output
Documentation
1
2
3
4
5
6
7
8
9
use json_fix::fix_json_syntax;

fn main() {
    let broken_json = r#"{"emotion": "hopeful, "score": 80}"#;
    let report = fix_json_syntax(broken_json);

    println!("✅ Fixed JSON:\n{}", report.fixed);
    println!("🔧 Steps Applied: {:?}", report.steps);
}