ferrite-json 0.1.0

json validator that actually tells you how to fix your mistakes
Documentation

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