joxide

Crates.iojoxide
lib.rsjoxide
version0.1.3
sourcesrc
created_at2022-11-01 18:59:45.747707
updated_at2023-09-12 14:41:37.354696
descriptionCLI tool to validate and format json files
homepagehttps://github.com/RainingComputers/joxide
repositoryhttps://github.com/RainingComputers/joxide
max_upload_size
id702998
size38,785
RainingComputers (RainingComputers)

documentation

https://github.com/RainingComputers/joxide

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 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>
Commit count: 40

cargo fmt