Toison presents a JSON file as a heatmap representing the relative size of all its members. This should help you find bottlenecks and optimize your JSON files.
To install Toison, you need the Rust compiler. You can then build toison using cargo
, the Rust build tool:
cargo install toison
Usage: toison [OPTIONS] <JSON_FILE> Arguments: <JSON_FILE> Options: -t, --threshold <THRESHOLD> hide nodes under this percentge of the total size [default: 0] -m, --max-depth <MAX_DEPTH> the maximum depth to render; if negative, counts from the deepest node -u, --unit <UNIT> the unit with which to weight nodes [default: bytes] [possible values: bytes, children] -c, --colors <COLORS> how to colorize output [default: hellscape] [possible values: hellscape, gradient, monochrome, none] -h, --help Print help information -V, --version Print version information
Toison is distributed under the GPL-compatible EUPL v1.2 license.
- Add several color schemes
- Add the
max-depth
flag