Probador de JSONPath
Pega JSON, escribe una expresión JSONPath y ve los valores coincidentes junto con sus rutas para depurar APIs y datos rápidamente.
Resultados
2 match(es).
How to test JSONPath expressions
Experiment with JSONPath selectors and inspect matched values with their paths while working through an API response or fixture.
Supported selectors
The tester supports root $, dot properties, quoted bracket properties, array indexes, wildcards, recursive property search with $..name, and recursive wildcard search with $..*.
Reading matches
Results are returned as JSON objects containing the matched path and value. This makes it easier to see whether the expression matched the value you expected or a parent object around it.
Useful workflow
- Start with a broad selector such as $.items[*] or $..price.
- Narrow one segment at a time until the count matches your expectation.
- Use bracket notation for property names that contain spaces or punctuation.
Testing notes
The matcher is a focused subset for quick selector checks. Confirm complex production selectors in the library or runtime that will execute them.
Preguntas frecuentes
Does it support filters like [?(@.price > 10)]?
No. This version does not evaluate filter expressions, slices, unions, or script expressions.
How do I select every value under an object?
Use $..* to collect every descendant value, or $..propertyName to collect every property with a specific name.
Why is my bracket selector failing?
Bracket property selectors need quotes, such as $['user-name']. Unquoted brackets are treated as array indexes or wildcards.
Can it query invalid JSON?
No. The JSON must parse first. Syntax errors are shown before the JSONPath expression is evaluated.
