🔍

首页Home › 开发工具Developer Tools

🔑 提取 JSON 键名Extract JSON Keys

列出 JSON 对象中的全部键名(可递归、可去重、可带路径)。适合快速摸清结构,本地处理。List all keys in a JSON object (optional recursion, unique keys, or full paths). Handy for surveying structure. Processed locally.

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

「提取 JSON 键名」是什么?What is the Extract JSON Keys tool?

列出 JSON 对象中的全部键名(可递归、可去重、可带路径)。适合快速摸清结构,本地处理。List all keys in a JSON object (optional recursion, unique keys, or full paths). Handy for surveying structure. Processed locally.

如何使用「提取 JSON 键名」?How do I use the Extract JSON Keys tool?

在「提取 JSON 键名」中,把内容粘贴或输入到上方输入框,结果会实时显示在下方,点击「复制结果」即可复制。In the Extract JSON Keys: Paste or type into the input box; the result appears below instantly — click "Copy result" to copy it.

路径怎么写?How are paths written?

用点连接对象键,数组下标写成 [0]。键名里如果有换行,在“每行一个”模式下写成 \n,不会拆成两行。Object keys are joined with dots; array indices look like [0]. A key containing a line break is shown with \n in one-per-line mode instead of being split across lines.

根是单个值会怎样?What if the root is a single value?

例如只粘贴 5 或 "text":没有键名可列,结果为空,下方会说明原因。If you paste just 5 or "text" there are no keys to list; the result is empty and a note below says why.

输入和输出是什么样的?What does the input and output look like?

例如在「提取 JSON 键名」中输入 {"a":1,"b":{"c":2}},「递归嵌套」设为 勾选,「显示路径」设为 勾选,「每行一个」设为 勾选,输出为:a ⏎ b ⏎ b.c(⏎ 表示换行)。For example, the Extract JSON Keys turns the input {"a":1,"b":{"c":2}}, "Recurse into nested objects" set to on, "Show paths" set to on, "One per line" set to on into: a ⏎ b ⏎ b.c (⏎ marks a line break).

有哪些选项可以调整?What options can I adjust?

「提取 JSON 键名」的设置:可勾选:「递归嵌套」(默认勾选)、「去重(仅键名)」、「显示路径」、「每行一个」(默认勾选)。每次生成结果都按当前设置处理。Settings in the Extract JSON Keys — tick boxes: "Recurse into nested objects" (on by default), "Unique (key names only)", "Show paths", "One per line" (on by default). The result always uses the current settings.

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

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

「提取 JSON 键名」免费吗?需要注册吗?Is the Extract JSON Keys free? Do I need an account?

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

📦 提取 JSON 值Extract JSON Values平 展平 JSON 对象Flatten JSON Object平 展平 JSON 数组Flatten JSON Array👁 隐藏 JSON 字符串内容Hide JSON Strings🔀 混淆 JSON(打乱键序 / 编码字符串)Obfuscate JSON⚙ JSON 转 Java PropertiesConvert JSON to Properties⚙ Java Properties 转 JSONConvert Properties to JSON📸 JSON 截图(导出为图片)Capture JSON Screenshot🖼️ JSON 转图片Convert JSON to Image💡 JSON 语法高亮(HTML)Highlight JSON🧱 JSON 转 BSON(十六进制)Convert JSON to BSON📊 TSV 分析Analyze TSV

← 全部工具All tools