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. |
常见问题
关于常见调试问题和数据隐私的可展开解答。
官方文档与参考
本工具的权威规范与平台文档。