5 releases

Uses old Rust 2015

0.1.4 Jan 3, 2025
0.1.3 Sep 12, 2023
0.0.3 Sep 12, 2023
0.0.2 Sep 11, 2023
0.0.1 Nov 1, 2022

#417 in Command line utilities

Download history 4/week @ 2024-09-18 7/week @ 2024-09-25 3/week @ 2024-12-04 4/week @ 2024-12-11 8/week @ 2024-12-25 148/week @ 2025-01-01

163 downloads per month

MIT license

37KB
1K SLoC

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>

Dependencies

~2MB
~18K SLoC