Crates.io | jsonformat-cli |
lib.rs | jsonformat-cli |
version | 0.2.0 |
source | src |
created_at | 2022-04-28 19:24:05.805705 |
updated_at | 2022-04-28 19:24:05.805705 |
description | Formats JSON extremely fast |
homepage | https://github.com/Nilstrieb/jsonformat |
repository | https://github.com/Nilstrieb/jsonformat |
max_upload_size | |
id | 576963 |
size | 13,099 |
jsonformat
is an extremely fast JSON formatter.
It formats over 20MB of nested JSON in 60ms.
You need Rust installed on your system
cargo install jsonformat-cli
jsonformat-cli 0.2.0
Nilstrieb <nilstrieb@gmail.com>
Formats JSON extremely fast
USAGE:
jsonformat [OPTIONS] [INPUT]
ARGS:
<INPUT> The input file
OPTIONS:
-h, --help Print help information
-i, --indentation <INDENTATION> The indentation, s will replaced by a space and t by a tab.
ss is the default
-o, --output <OUTPUT> The output file
-V, --version Print version information
Reads from stdin if no file is supplied. Outputs to stdout if no output file is specified.
jsonformat
does not report malformed json - it can't even fully know whether the json is actually malformed.
Malformed json is just formatted kind of incorrectly, with no data lost and no crashes. If you find one, open an issue,
jsonformat
does not actually parse the json, it just loops through each character and keeps track of some flags.
It then copies these characters to the output buffer, adding and removing whitespace.