Crates.io | joxide |
lib.rs | joxide |
version | 0.1.3 |
source | src |
created_at | 2022-11-01 18:59:45.747707 |
updated_at | 2023-09-12 14:41:37.354696 |
description | CLI tool to validate and format json files |
homepage | https://github.com/RainingComputers/joxide |
repository | https://github.com/RainingComputers/joxide |
max_upload_size | |
id | 702998 |
size | 38,785 |
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?
cargo install joxide
Formatting files
joxide format <path-or-glob-or-dir> [--indent-length <indent-length>] [--write]
Validating files
joxide validate <path-or-glob-or-dir>