Assuming you have Rust/Cargo installed, run this command in a terminal:
cargo install tojson
It will make the tojson command available in your PATH if you've allowed the PATH to be modified when installing Rust. cargo uninstall tojson uninstalls.
tojson
PATH
cargo uninstall tojson
Back to the crate overview.