Skip to main content
DevTools24

JSONPath 测试工具

针对您的 JSON 数据测试 JSONPath 表达式。查询、过滤和提取数据,实时显示结果。

No results

JSONPath - 技术详情

JSONPath is a query language for JSON, similar to XPath for XML. It allows you to select and extract data from JSON documents using path expressions.

命令行替代方案

// Common JSONPath expressions\n$.store.book[*].author   // All authors\n$..price                  // All prices (recursive)\n$.store.book[0]           // First book\n$.store.book[-1:]         // Last book\n$.store.book[?(@.price<10)] // Filter by condition

参考

查看官方规范