⚙️ JSON 转 TOMLJSON to TOML Converter
把 JSON 转换为 TOML 配置格式:嵌套对象变成 [表],对象数组变成 [[数组表]],会提示 TOML 无法表示的 null 值。Convert JSON to TOML: nested objects become [tables], arrays of objects become [[arrays of tables]], and null values (which TOML cannot represent) are reported.
使用说明与常见问题How-to & FAQ
「JSON 转 TOML」是什么?What is the JSON to TOML Converter tool?
把 JSON 转换为 TOML 配置格式:嵌套对象变成 [表],对象数组变成 [[数组表]],会提示 TOML 无法表示的 null 值。Convert JSON to TOML: nested objects become [tables], arrays of objects become [[arrays of tables]], and null values (which TOML cannot represent) are reported.
如何使用「JSON 转 TOML」?How do I use the JSON to TOML Converter tool?
在「JSON 转 TOML」中,把内容粘贴或输入到上方输入框,结果会实时显示在下方,点击「复制结果」即可复制。例如输入「{"n":9223372036854775807}」,得到「n = 9223372036854775807」。In the JSON to TOML Converter: Paste or type into the input box; the result appears below instantly — click "Copy result" to copy it. Example: "{"n":9223372036854775807}" → "n = 9223372036854775807".
为什么提示 null?Why does it complain about null?
TOML 规范没有 null/空值类型。可以勾选“删除 null 值”把这些键去掉,或在 JSON 中改成空字符串。The TOML spec has no null type. Tick "Drop null values" to omit those keys, or change them to empty strings in the JSON.
数据会上传吗?Is my data uploaded?
不会。转换完全在浏览器本地进行,适合处理内部数据。No. Conversion happens entirely in your browser, so it is safe for internal data.
「JSON 转 TOML」免费吗?需要注册吗?Is the JSON to TOML Converter free? Do I need an account?
「JSON 转 TOML」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The JSON to TOML Converter is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.