30 releases
Uses new Rust 2024
| new 0.2.31 | Feb 20, 2026 |
|---|---|
| 0.2.30 | Feb 18, 2026 |
| 0.2.26 | Jan 29, 2026 |
| 0.2.17 | Dec 29, 2025 |
| 0.2.11 | Oct 30, 2025 |
#2843 in Command line utilities
6KB
jsontoml 0.2.31
Convert a JSON file to TOML on the CLI
- Repo: https://github.com/pepa65/jsontoml
- After json2toml
- Inspired heavily by toml2json
Usage
jsontoml 0.2.31 - Convert a JSON file to TOML on the CLI
Usage: jsontoml [input]
Arguments:
[input] JSON file to convert to TOML
Options:
-h, --help Print help
-V, --version Print version
Example
- Input:
input.json:
{"key": "value", "key2": "value2"}
- Command:
jsontoml input.json >output.toml - Output:
output.toml:
"key" = "value"
"key2" = "value2"
Dependencies
~1.4–2.2MB
~41K SLoC