Skip to content

awrped/ferrite-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ferrite-json

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

About

json validator that actually tells you how to fix your mistakes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages