ferrite-json

Crates.ioferrite-json
lib.rsferrite-json
version0.1.0
created_at2026-01-17 18:55:45.071318+00
updated_at2026-01-17 18:55:45.071318+00
descriptionjson validator that actually tells you how to fix your mistakes
homepagehttps://github.com/awrped/ferrite
repositoryhttps://github.com/awrped/ferrite
max_upload_size
id2050959
size32,745
(awrped)

documentation

README

ferrite

humans make errors, so we should show it to them, so it can be fixed.

usage

cargo build --release
./target/release/ferrite <file.json>

example output

Error: ferrite::trailing_comma

  x trailing comma
   ,-[4:42]
 3 |   "age": 30,
 4 |   "hobbies": ["reading", "coding", "gaming",]
   :                                          |
   :                                          `-- remove this comma
 5 | }
   `----
  help: change `"hobbies": ["reading", "coding", "gaming",]` to `"hobbies": ["reading", "coding", "gaming"]`

contributing

plsz make sure to pre-lint with clippy before making a pr:

cargo clippy --all-targets --all-features -- -D warnings
Commit count: 8

cargo fmt