4 releases
Uses old Rust 2015
0.1.3 | Sep 12, 2023 |
---|---|
0.0.3 | Sep 12, 2023 |
0.0.2 | Sep 11, 2023 |
0.0.1 | Nov 1, 2022 |
#1901 in Command line utilities
30 downloads per month
37KB
1K
SLoC
joxide
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
{
"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?
Install
cargo install joxide
Usage
Formatting files
joxide format <path-or-glob-or-dir> [--indent-length <indent-length>] [--write]
Validating files
joxide validate <path-or-glob-or-dir>
Dependencies
~0.4–1MB
~23K SLoC