ToolPal

JSONPath 测试器

实时对 JSON 数据求值 JSONPath 表达式。支持过滤器、切片、通配符以及递归下降。

示例:

JSONPath 语法参考

  • $ — root
  • .property — child property
  • [n] — array index (negative for end)
  • [start:end] — array slice
  • [*] — wildcard
  • ..property — recursive descent
  • [?(@.field == 'value')] — filter expression

使用方法

实时对 JSON 数据求值 JSONPath 表达式。支持过滤器、切片、通配符以及递归下降。

  1. 1Paste your JSON document into the input area on the left.
  2. 2Type a JSONPath expression in the path field, or click one of the example buttons to start.
  3. 3The result panel updates instantly as you type — matched values appear as a JSON array.
  4. 4Use bracket notation [n] for array indexing, [*] for wildcards, and [?(@.field == 'value')] for filters.
  5. 5Click 'Copy' to copy the result, or 'Reset' to restore the sample JSON and a default expression.

主要功能

  • Real-time evaluation — see matches update as you type the path or edit the JSON
  • Built-in examples — clickable buttons demonstrate common JSONPath patterns including filters and slices
  • Filter expressions — supports comparison operators (==, !=, <, >, <=, >=) on numeric and string values
  • Recursive descent — use .. to find matching keys at any depth in the document
  • 100% client-side — your JSON never leaves your browser; the entire evaluator runs in JavaScript

常见问题

了解更多