fjson-core

Crates.iofjson-core
lib.rsfjson-core
version0.1.1
created_at2025-09-29 11:06:15.089561+00
updated_at2025-09-29 11:21:38.941457+00
descriptionfjson is a zero-dependency JSON Parser and Fixer. It takes any input and produces valid JSON. No AI involved.
homepage
repositoryhttps://github.com/matx64/fjson
max_upload_size
id1859398
size22,173
Matheus Alves (matx64)

documentation

README

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.

Commit count: 0

cargo fmt