首页
Tom Utilities

JSONPath 测试器

JSON 工具

使用 JSONPath 表达式查询 JSON 数据并即时查看匹配值。

使用方法

Run a query

Paste JSON, enter a JSONPath expression and view the matches as formatted JSON.

  1. Paste or type JSON.
  2. Enter a path such as $.store.book[*].title.
  3. Copy the result when it looks right.

Supported syntax

Dot and bracket child access, array indexes, slices, wildcards, recursive descent with .. and filter expressions such as [?(@.price<40)].

常见问题

Does it support filters?

Yes. Filters support comparisons with ==, !=, <, <=, > and >= against property values.

What if there is one match?

A single match is shown as a JSON value. Multiple matches are shown as a JSON array.