🔍

首页Home › 文本工具Text Tools

🧾 从 JSON 提取文本Extract Text from JSON

把 JSON 里所有字符串值按路径列出。本地处理。可设置「把值中的换行写成 \n(一个值一行)」。List every string value in JSON with its path. Processed locally. Settings: Write line breaks in values as \n (one value per line).

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

「从 JSON 提取文本」是什么?What is the Extract Text from JSON tool?

把 JSON 里所有字符串值按路径列出。本地处理。可设置「把值中的换行写成 \n(一个值一行)」。List every string value in JSON with its path. Processed locally. Settings: Write line breaks in values as \n (one value per line).

如何使用「从 JSON 提取文本」?How do I use the Extract Text from JSON tool?

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

数字呢?Numbers?

只提取字符串值,数字和布尔忽略。Only string values; numbers and booleans are skipped.

值里有换行怎么办?What about line breaks in values?

默认把值中的换行写成 \n(这类值里原有的反斜杠写成 \\,以免混淆),这样每个值正好占一行;取消勾选则按原样输出换行。By default line breaks inside a value are written as \n (backslashes already in such a value become \\ so nothing is ambiguous), so each value takes exactly one line; untick the option to output the line breaks as they are.

键名里有点号怎么显示?How are keys with dots shown?

含点号、方括号、空格等字符的键名用方括号写法,例如 ["a.b"],这样能和嵌套路径 a.b 区分开。Keys containing dots, brackets, spaces or similar characters use bracket notation such as ["a.b"], so they can't be confused with the nested path a.b.

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

例如在「从 JSON 提取文本」中输入 {"a":"hi","b":[1,"x"]},输出为:a: hi ⏎ b[1]: x(⏎ 表示换行)。For example, the Extract Text from JSON turns the input {"a":"hi","b":[1,"x"]} into: a: hi ⏎ b[1]: x (⏎ marks a line break).

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

「从 JSON 提取文本」的设置:可勾选:「把值中的换行写成 \n(一个值一行)」(默认勾选)。每次生成结果都按当前设置处理。Settings in the Extract Text from JSON — tick boxes: "Write line breaks in values as \n (one value per line)" (on by default). The result always uses the current settings.

处理大段文本会卡吗?Can it handle long text?

「从 JSON 提取文本」在浏览器中直接处理,几 MB 以内的文本通常瞬间完成;文本不会离开你的设备。The Extract Text from JSON runs in your browser; text up to a few MB is usually processed instantly and never leaves your device.

「从 JSON 提取文本」免费吗?需要注册吗?Is the Extract Text from JSON free? Do I need an account?

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

📏 计算文本长度Find the Length of Text🔢 去除行号Remove Line Numbers⇥ 空格转制表符Convert Spaces to Tabs🔃 旋转文本行Rotate Text🔡 大写转小写Uppercase to Lowercase📄 文本摘要(抽取式)Text Summarizer (Extractive)📚 引用生成器Citation Generator✉️ 求职信生成器Cover Letter Generator段落生成器Paragraph Generator🔢 编辑器字数统计Editor Counter🔢 字数统计Word & Character Counter🔠 大小写转换Case Converter

← 全部工具All tools