TOML转JSON
提供TOML转JSON的交互处理。
使用步骤
如何使用
- Paste TOML up to 100,000 characters.
- Convert it and review the formatted JSON and any boundary errors.
- Copy the JSON or download it as a .json file.
Common TOML configuration values
The converter supports quoted strings, literal strings, booleans, integers, decimal numbers, arrays, inline tables, dotted keys, and standard table sections. Keys may be bare, quoted, or dotted.
Explicit limits and local privacy
Date and time values, multi-line strings, arrays of tables, heterogeneous arrays, and special numeric values are rejected with a clear message. Parsing, formatting, copying, and download preparation happen in your browser; your TOML is not uploaded.
常见问题
你可能还想知道
Can I convert TOML dates or times?
No. TOML date and time values are intentionally rejected because JSON has no matching native type. Quote them first if you want them as strings.
Are tables and dotted keys supported?
Yes. Standard [table] sections, quoted keys, and dotted keys create nested JSON objects.
Why are arrays of tables rejected?
[[table]] entries need ordered object merging rules. This focused converter rejects them rather than guessing at the intended JSON shape.