跳转到主要内容
CuteJSON
↑↓ 导航 Enter 选择 Esc 关闭

JSON Search

Find every key and value matching a query, each with its own path, then replace what you find inside string values.

返回所有工具

键盘快捷键

这些快捷键在页面上对应操作存在时有效。

打开命令面板
Ctrl/Cmd + K
运行主要操作
Ctrl/Cmd + Enter
格式化
Ctrl/Cmd + Shift + F
压缩
Ctrl/Cmd + Shift + M
复制输出
Ctrl/Cmd + Shift + C
打开文件
Ctrl/Cmd + Shift + O
下载输出
Ctrl/Cmd + S
关闭此对话框
Esc
打开此对话框
F1 / ?

本地数据

以下所有内容仅存储在此浏览器、此设备上。

未保存的草稿
记住选项的工具

最近打开的文件

    此设备上尚未打开任何文件。

    通过链接分享

    内容被打包在链接 # 号之后的部分。

    分享此页面上的第一个输入。

    暂无可分享的内容。

    输入

    从 URL 加载

    直接从浏览器获取 URL。

    Matches

    Matches appear here as you type.

    完全在您的浏览器中运行。

    关于此工具

    A query can match three ways. Exact looks for the characters you typed, in order and next to each other, the way a plain text search does. Fuzzy looks for the same characters in the same order but allows anything else in between, forgiving a typo or a half remembered name at the cost of having no exact span left to replace. Regular expression treats the query as a JavaScript pattern, with case sensitivity as its only implicit flag. A search can look at keys, values or both, and a type filter narrows value matches to one kind, string, number, boolean, null, object or array, which also works against a key match, so searching keys with the type set to boolean finds every key whose value is true or false. Replace only ever touches a string value matched with Exact or Regular expression: a number, a boolean and null each have exactly one valid way to be written, and splicing text into the middle of one would produce something that is not JSON at all, so this tool never tries. Object keys are searchable but never renamed, since a safe rename means finding and updating every reference to that key elsewhere in the document, a different and larger job than this one. The matches panel updates as you type in both modes, which is the preview: nothing in the document changes until Replace all is pressed, and clicking any match jumps to its exact position in the editor on the left.

    使用方法

    1. Paste your JSON into the editor, or load the sample.
    2. Type a query. Choose whether it searches keys, values or both, how it matches, and narrow it to one value type if you want.
    3. Matches appear on the right as you type, each with its own path. Switch the operation to Search and replace to turn the query into a find and replace.