joxide is a CLI tool to validate and format json files written in rust. The parser, validator and the formatter are completely written from scratch and uses argh to parse CLI arguments.
test.json
json
{
"hello": "world",
"numbers": [
2
3
]
}
Validate
```
joxide validate test.json At test.json:5:9 3 ^ Did not expect '3', expected ']'. Forgot a comma maybe? ```
cargo install joxide
Formatting files
joxide format <file> [--indent-length <indent-length>] [--write]
Validating files
joxide validate <file>