首页Home › 开发工具Developer Tools

📃 JSON 转纯文本JSON to Text Converter

把 JSON 转换成易读的纯文本:缩进的“键: 值”列表、带完整路径的 a.b[0] = 值 格式,或只提取所有值,适合把接口返回结果贴进文档或邮件。Turn JSON into readable plain text: an indented 'key: value' outline, full-path lines like a.b[0] = value, or just the values — handy for pasting API responses into documents or emails.

使用说明与常见问题How-to & FAQ

「JSON 转纯文本」是什么?What is the JSON to Text Converter tool?

把 JSON 转换成易读的纯文本:缩进的“键: 值”列表、带完整路径的 a.b[0] = 值 格式,或只提取所有值,适合把接口返回结果贴进文档或邮件。Turn JSON into readable plain text: an indented 'key: value' outline, full-path lines like a.b[0] = value, or just the values — handy for pasting API responses into documents or emails.

如何使用「JSON 转纯文本」?How do I use the JSON to Text Converter tool?

在「JSON 转纯文本」中,把内容粘贴或输入到上方输入框,结果会实时显示在下方,点击「复制结果」即可复制。例如输入「{"a":1,"b":2,"a":3}」,得到「a: 3 ⏎ b: 2」。In the JSON to Text Converter: Paste or type into the input box; the result appears below instantly — click "Copy result" to copy it. Example: "{"a":1,"b":2,"a":3}" → "a: 3 ⏎ b: 2".

三种输出格式有什么区别?How do the three formats differ?

缩进列表最适合人阅读;完整路径格式每行一个叶子值,便于搜索、比对和写配置;只提取值则把所有字符串、数字按出现顺序列出。The indented outline is best for reading; path format puts one leaf value per line, which is easy to search, diff or turn into config; values-only lists every string and number in order.

JSON 格式错误时怎么办?What if my JSON is invalid?

会显示浏览器给出的解析错误信息(通常带位置)。常见原因是末尾多余逗号、单引号或缺少引号的键名,可先用本站的 JSON 格式化工具定位并修正错误。You get the browser's parse error, usually with a position. Common causes are trailing commas, single quotes or unquoted keys; find and fix them first with the JSON formatter.

数字和特殊字符串会被改写吗?Are numbers or special strings changed?

不会。数字按 JSON 原文输出:12345678901234567890 不会丢失精度,1e21 不会变成 1e+21,-0 和 0.10 也保持原样。空字符串显示为 "",含换行或制表符的字符串会带引号并显示为 \n、\t,避免和下一行混淆。勾选“字符串加引号”后所有字符串都带引号,可以区分字符串 "true" 和布尔值 true。No. Numbers are written exactly as in the JSON: 12345678901234567890 keeps every digit, 1e21 is not turned into 1e+21, and -0 and 0.10 stay as written. An empty string shows as "", and a string with line breaks or tabs is quoted and shown with \n or \t so it cannot be mistaken for the next line. With 'Quote strings' on, every string is quoted, so the string "true" can be told apart from the boolean true.

会保留键的顺序吗?Is key order preserved?

会。键按 JSON 中的书写顺序输出,"1"、"2" 这类纯数字键也一样。同一对象里如果有重复的键,只保留最后一次出现的值,并在结果下方提示重复的数量。Yes. Keys follow the order in the JSON, including integer-like keys such as "1" and "2". If an object has the same key twice, only the last value is kept and a notice below the result says how many duplicates were found.

代码或数据会被上传吗?Is my code or data uploaded?

不会。「JSON 转纯文本」完全用 JavaScript 在本地运行,适合处理含有密钥、内部接口等敏感内容的数据。No. The JSON to Text Converter runs entirely in local JavaScript, so it is safe for data containing keys or internal endpoints.

「JSON 转纯文本」免费吗?需要注册吗?Is the JSON to Text Converter free? Do I need an account?

「JSON 转纯文本」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The JSON to Text 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.

相关工具Related tools

🗄️ SQL 转 JSON(INSERT 语句转 JSON)SQL to JSON Converter📗 CSV 转 Excel(XLSX)CSV to Excel Converter📊 XLS 转换器(XLS ⇄ XLSX/CSV/ODS)XLS Converter🧾 JSON 格式化校验JSON Formatter & Validator🧪 正则表达式测试Regex Tester⏰ Cron 表达式解析Cron Expression Explainer🔀 YAML JSON 互转YAML to JSON Converter📊 CSV JSON 互转CSV to JSON ConverterⓂ️ Markdown 在线预览Markdown Live Preview🗄️ SQL 格式化/压缩SQL Formatter & Minifier🧵 字符串转义/反转义String Escape / Unescape📰 XML 格式化XML Formatter & Validator

← 全部工具All tools