📦 提取 JSON 值Extract JSON Values
提取 JSON 中的全部原始值(字符串、数字、布尔、null),可只要叶子节点,每行一个。本地处理。Extract all primitive JSON values (strings, numbers, booleans, null), optionally leaves only, one per line. Processed locally.
使用说明与常见问题How-to & FAQ
「提取 JSON 值」是什么?What is the Extract JSON Values tool?
提取 JSON 中的全部原始值(字符串、数字、布尔、null),可只要叶子节点,每行一个。本地处理。Extract all primitive JSON values (strings, numbers, booleans, null), optionally leaves only, one per line. Processed locally.
如何使用「提取 JSON 值」?How do I use the Extract JSON Values tool?
在「提取 JSON 值」中,把内容粘贴或输入到上方输入框,结果会实时显示在下方,点击「复制结果」即可复制。例如输入「{"a":1,"b":"x"}」,得到「1 ⏎ "x"」。In the Extract JSON Values: Paste or type into the input box; the result appears below instantly — click "Copy result" to copy it. Example: "{"a":1,"b":"x"}" → "1 ⏎ "x"".
对象和数组本身会输出吗?Are objects and arrays listed?
不会,只输出叶子上的原始值。数字按原文输出(1e400 仍是 1e400,不会变成 Infinity)。No — only leaf primitives are listed. Numbers are written as in the input (1e400 stays 1e400 rather than Infinity).
大数字和重复键会怎样?What about big numbers and duplicate keys?
数字按原文保留,不经过 JavaScript 浮点:12345678901234567890、1e400、1.50 原样输出,不会变成 12345678901234567000、Infinity 或 1.5。重复的键按 JSON 规则保留最后一个值,并在结果下方提示是哪个键。语法错误会写出第几行第几列。Numbers are kept exactly as written, with no JavaScript floating-point step: 12345678901234567890, 1e400 and 1.50 come out unchanged instead of 12345678901234567000, Infinity or 1.5. Duplicate keys keep the last value, as JSON parsers do, and a notice below the result names the key. Syntax errors give the line and column.
输入和输出是什么样的?What does the input and output look like?
例如在「提取 JSON 值」中输入 {"a":1,"b":"x"},输出为:1 ⏎ "x"(⏎ 表示换行)。For example, the Extract JSON Values turns the input {"a":1,"b":"x"} into: 1 ⏎ "x" (⏎ marks a line break).
代码或数据会被上传吗?Is my code or data uploaded?
不会。「提取 JSON 值」完全用 JavaScript 在本地运行,适合处理含有密钥、内部接口等敏感内容的数据。No. The Extract JSON Values runs entirely in local JavaScript, so it is safe for data containing keys or internal endpoints.
「提取 JSON 值」免费吗?需要注册吗?Is the Extract JSON Values free? Do I need an account?
「提取 JSON 值」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Extract JSON Values is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.