An open API service indexing awesome lists of open source software.

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.

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
```