https://github.com/rainingcomputers/joxide
CLI tool to validate and format json files written in rust.
https://github.com/rainingcomputers/joxide
Last synced: 12 months ago
JSON representation
CLI tool to validate and format json files written in rust.
- Host: GitHub
- URL: https://github.com/rainingcomputers/joxide
- Owner: RainingComputers
- License: mit
- Created: 2022-05-20T16:40:56.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-03T06:20:35.000Z (over 1 year ago)
- Last Synced: 2025-07-06T10:53:43.278Z (12 months ago)
- Language: Rust
- Homepage:
- Size: 59.6 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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](https://github.com/google/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?
```
## Install
```
cargo install joxide
```
## Usage
_Formatting files_
```
joxide format [--indent-length ] [--write]
```
_Validating files_
```
joxide validate
```