What is TOML?▾
TOML (Tom's Obvious Minimal Language) is a configuration file format used by Rust (Cargo.toml), Python (pyproject.toml), Hugo, and other tools. It's designed to be easy to read and map to a dictionary.
Does this handle nested tables?▾
Yes. Both dotted keys (a.b.c = value) and section headers ([section.subsection]) are parsed into nested JSON objects.
What about arrays of tables?▾
Yes. Double-bracket sections ([[array]]) are parsed into JSON arrays of objects, matching the TOML specification.
What TOML features are supported?▾
Strings, integers, floats, booleans, datetimes, arrays, inline tables, dotted keys, sections, and arrays of tables. Covers the vast majority of real-world TOML files.
Can I convert JSON back to TOML?▾
Not currently. JSON-to-TOML conversion requires making choices about table style, key ordering, and formatting that are hard to automate well. Use YAML to JSON for bidirectional conversion.