Skip to content

CLI tool to validate and format json files written in rust.

License

Notifications You must be signed in to change notification settings

RainingComputers/joxide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

CLI tool to validate and format json files written in rust.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages