A command-line tool that converts TOML to JSON.
$ cargo install yaml2json
Convert YAML on stdin
to JSON, filtering it through jq
:
bash
$ yaml2json <<< 'okay = "ok"' | jq
Convert YAML from a file and pretty-print it without jq
:
bash
$ yaml2json --pretty ~/.cargo/.crates.toml