joxide

Crates.iojoxide
lib.rsjoxide
version0.1.4
created_at2022-11-01 18:59:45.747707+00
updated_at2025-01-03 06:20:45.466728+00
descriptionCLI tool to validate and format json files
homepagehttps://github.com/RainingComputers/joxide
repositoryhttps://github.com/RainingComputers/joxide
max_upload_size
id702998
size39,468
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: 41

cargo fmt