Formatadores e Código
Conversor TOML ⇄ JSON
Convert between TOML and JSON — both directions.
Nota do editor
Understanding · The config language that wanted to be obvious.
Este capítulo aprofundado está disponível apenas em inglês no momento. A ferramenta de conversão acima funciona no seu idioma; o artigo explicativo longo ainda não foi traduzido.
Perguntas frequentes
Quick answers.
›Does TOML support all JSON data types?
Yes. TOML supports strings, integers, floats, booleans, and arrays, which map directly to JSON types. Note that TOML also has a native Datetime type that JSON does not, which usually converts to an ISO 8601 string.
›Is my configuration data secure?
Yes. The conversion logic runs entirely within your browser's memory using JavaScript. No data is sent to a server or stored externally.
›Why use TOML instead of JSON for config files?
TOML is designed to be easier for humans to read and write. It allows comments, supports multi-line strings, and relies on a less syntax-heavy structure than JSON's braces and quotes.
›Does the converter handle nested tables?
Yes. Nested TOML tables and arrays of tables are correctly converted into nested JSON objects and arrays.
As pessoas também pesquisam por
Ferramentas relacionadas
More in this room.
- Conversor de JSON para XMLConverta JSON para XML limpo e bem formatado.
- Conversor de CSV para JSONTransforme folhas de cálculo em arrays JSON — instantaneamente.
- Conversor de YAML para JSONConverta YAML para JSON — instantâneo, apenas no navegador.
- Conversor de JSON para ExcelConverta arrays JSON em folhas de cálculo Excel.
- Conversor INI ⇄ JSONConverta ficheiros de configuração INI para JSON e vice-versa.
- Conversor de Esquema SQL → NoSQLTransforme um CREATE TABLE numa forma de documento JSON.