Probador JSONPath
Prueba expresiones JSONPath sobre datos JSON
JSON Data
Results
Pull exactly what you need out of huge payloads
When a JSON document is hundreds or thousands of lines, scrolling to find a value isn't a strategy. JSONPath gives you an XPath-style query language for JSON: dot paths, array indexes, recursive descent, and filter expressions you can iterate on live until the result matches what you need.
Use the tester when you need to
Extract specific values from a response
Run expressions like $.users[?(@.active==true)].email to select exactly the fields that matter.
Debug a JSONPath query before shipping
Iterate on the expression in the browser until the matches look right, then paste it into your code.
Audit large or deeply nested documents
Use $..key to find every occurrence of a field anywhere in the tree, no matter how deep.
How to test a JSONPath expression
- 1
Paste your JSON data into the editor.
- 2
Type a JSONPath expression in the query field.
- 3
Review the matches and refine the expression until the result is exactly what you need.
Keep going
Browse the source visually
Use tree view to find candidate paths before writing JSONPath expressions.
Format the JSON first
Beautify the source so reading paths off the document is easier.
Validate the source
Make sure the document is valid before running queries against it.
JSONPath cheatsheet
Quick reference for filters, slices, and recursive descent.
Common JSONPath workflows
Recreate the query against a real response and tweak it until the matches are correct.
Find all values matching a condition deep in a payload and decide whether to alert or page.
Avoid loading the whole document into your app — extract only what you need at the boundary.
Herramientas relacionadas
Preguntas frecuentes
JSONPath es un lenguaje de consulta para JSON, similar a XPath en XML. Permite seleccionar y extraer valores concretos de un documento JSON con expresiones como $.store.book[0].title o $..price (todos los precios a cualquier profundidad).
$ es la raíz, .key selecciona un hijo, [0] selecciona un índice de array, [*] selecciona todos los elementos, .. recorre recursivamente a cualquier profundidad y [?(@.price < 10)] filtra por condición. Ejemplo: $.users[?(@.active==true)].name obtiene los nombres de usuarios activos.
Pega tu JSON en el editor, escribe la expresión JSONPath en el campo de consulta y haz clic en Execute. Los resultados aparecen al instante, mostrando tanto los valores como sus rutas completas dentro del documento.
JSONPath usa notación con puntos ($.store.book[0]) mientras que jq usa sintaxis con pipes (.store.book[0]). JSONPath se usa sobre todo en ecosistemas JavaScript/Java, mientras que jq es una herramienta de línea de comandos muy popular en scripting de shell. Ambos sirven para consultar datos JSON.