Tool overview
什么是JSONPath 查询?
JSONPath 查询是一款帮助您使用 JSONPath 表达式查询 JSON 并返回结构化結果的開發者工具。
為什么使用JSONPath 查询?
在需要使用 JSONPath 表达式查询 JSON 并返回结构化結果時提升可讀性与效率,且不會将数據上传到服務器。
核心功能
即時語法高亮、錯誤捕获、客戶端私隱保护与一鍵複製。使用 JSONPath 表达式查询 JSON 并返回结构化結果
使用方法
按照以下步骤使用上方工具并获得准确結果。
- Line 1: JSONPath expression (e.g. $.users[0].email).
- Separator line: ---
- Remaining lines: JSON payload to query.
- Copy extracted nodes into other transformers.
JSONPath Syntax Reference
Supported path tokens in this tool.
| 功能 / 场景 | 有效語法示例 | 常见陷阱 / 无效示例 |
|---|---|---|
| Root | $.store.book | /store/bookPaths start with $ not XPath /. |
| Index | $.items[0] | $.items.0Array indexes use bracket notation. |
| Property | $.user.name | $.user[name]Dot notation for object keys without special chars. |
常见問題
關于常见调试問題和数據私隱的可展開解答。
官方文件与参考
本工具的权威规范与平台文件。