👁 隐藏 JSON 字符串内容Hide JSON Strings
把 JSON 里所有字符串值替换成等长的 * 或自定义字符,结构与数字保持不变。适合演示时遮住正文,本地处理。Replace every JSON string value with the same length of * (or a custom character); structure and numbers stay. Handy for demos. Processed locally.
使用说明与常见问题How-to & FAQ
「隐藏 JSON 字符串内容」是什么?What is the Hide JSON Strings tool?
把 JSON 里所有字符串值替换成等长的 * 或自定义字符,结构与数字保持不变。适合演示时遮住正文,本地处理。Replace every JSON string value with the same length of * (or a custom character); structure and numbers stay. Handy for demos. Processed locally.
如何使用「隐藏 JSON 字符串内容」?How do I use the Hide JSON Strings tool?
在「隐藏 JSON 字符串内容」中,把内容粘贴或输入到上方输入框,按需设置「遮罩字符」,结果会实时显示在下方,点击「复制结果」即可复制。In the Hide JSON Strings: Paste or type into the input box, adjust "Mask character"; the result appears below instantly — click "Copy result" to copy it.
键名会藏吗?Are keys hidden?
不会,只替换字符串类型的值;数字、布尔和 null 原样保留(大整数也不会变)。No — only string values are replaced; numbers, booleans and null stay exactly as written (big integers too).
大数字和重复键会怎样?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":"hi","n":1},输出为:{ ⏎ "a": "**", ⏎ "n": 1 ⏎ }(⏎ 表示换行)。For example, the Hide JSON Strings turns the input {"a":"hi","n":1} into: { ⏎ "a": "**", ⏎ "n": 1 ⏎ } (⏎ marks a line break).
有哪些选项可以调整?What options can I adjust?
「隐藏 JSON 字符串内容」的设置:「遮罩字符」默认 *;可勾选:「压缩输出」。每次生成结果都按当前设置处理。Settings in the Hide JSON Strings — "Mask character" default *; tick boxes: "Minify". The result always uses the current settings.
代码或数据会被上传吗?Is my code or data uploaded?
不会。「隐藏 JSON 字符串内容」完全用 JavaScript 在本地运行,适合处理含有密钥、内部接口等敏感内容的数据。No. The Hide JSON Strings runs entirely in local JavaScript, so it is safe for data containing keys or internal endpoints.
「隐藏 JSON 字符串内容」免费吗?需要注册吗?Is the Hide JSON Strings free? Do I need an account?
「隐藏 JSON 字符串内容」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Hide JSON Strings is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.