JSONPath 测试器

对 JSON 运行路径表达式

正在加载工具…

关于 JSONPath 测试器

对 JSON 运行路径表达式

A useful JSONPath test includes both the sample document and the expression that will run in your application. Testing arrays, missing properties, and empty results helps avoid queries that appear correct only for one fixture.

如何使用这个开发者工具

  1. Paste a representative JSON document and enter the JSONPath expression.
  2. Run the query and inspect matched values and the empty-result case.
  3. Change the expression with one small assumption at a time, then copy the tested form into your code.

隐私与数据处理

JSONPath evaluation runs locally in the browser. Use a reduced fixture rather than pasting customer records or production payloads into a public page.

相关开发者工具

常见问题

Why did my expression return no values?

Check the root symbol, property spelling, array indexes, and whether the sample document actually contains the path. An empty result is different from invalid JSON.

Does this tool modify my JSON?

No. It reads the document and returns matches; the input JSON remains separate from the query result.

Should I test only a happy-path document?

No. Include missing fields, empty arrays, multiple items, and the nesting patterns your application will receive.