Esta página aún no está traducida al español, así que la mostramos en inglés.

JSONPath Tester & Evaluator

Type a JSONPath query and instantly see what it selects — with the exact path of each match. Ideal for building filters for APIs, jq-style extractions, Postman tests and automation tools.

Actualizado el

Tus datos nunca salen de tu ordenador. Todo se procesa localmente en tu navegador.

Cómo usar: JSONPath Tester

  1. Paste your JSON (or keep the sample bookstore).
  2. Type a JSONPath expression, or click an example.
  3. Read the matched values and the exact path of each one, then copy the result.

JSONPath syntax

ExpressionMeaning
$The root of the document
.key or ['key']A child property (use brackets for keys with spaces or dots)
[0], [-1]Array element by index; negative counts from the end
[0:3], [-2:]Array slice
*Wildcard: all children
..Recursive descent: search at any depth ($..price)
[?(@.price < 10)]Filter: elements where the expression is true; @ is the current element
[0,2], ['a','b']Union of several indexes or keys

Filters

Filters support comparisons (==, !=, <, >=…), logical operators (&&, ||) and existence checks ([?(@.isbn)]). This tester evaluates filters in a safe sandboxed mode, so expressions cannot run arbitrary code.

Implementations differ

JSONPath was informal for years until RFC 9535 (2024) standardized it. Libraries still differ in edge cases — filter syntax, regular expressions and how missing keys behave. This tool uses JSONPath Plus, a widely used JavaScript implementation; check your target library (Jayway in Java, jsonpath-ng in Python, AWS Step Functions, Postman) for its exact dialect.

JSONPath vs jq

jq is a full transformation language for the command line; JSONPath only selects values. $.store.book[*].title in JSONPath corresponds to .store.book[].title in jq. To browse a document and copy paths by clicking, use the JSON viewer; for Make, Zapier and n8n mapping syntax, the JSON path finder.

También se busca como: jsonpath online, jsonpath evaluator, jsonpath filter, json query, jsonpath expression, test jsonpath.

Herramientas que combinan con: JSONPath Tester

  • Formateador JSON — Pega el código JSON para formatearlo, minimizarlo o validarlo.
  • JSON Schema Validator — Paste a schema and some JSON to see exactly which values break which rule — or generate a starting schema from example data.
  • JSON Diff — Find exactly what changed between two JSON documents — API responses, config versions, fixtures or exports — as a list of paths with old and new values.
  • OpenAPI / Swagger Validator — Paste an API specification to check it against the official OpenAPI schema, catch broken references and inconsistent path parameters, and see every endpoint at a glance.

Preguntas frecuentes

What does $.. mean in JSONPath?
Recursive descent: $..price finds every price property at any depth.
How do I filter an array in JSONPath?
Use a filter expression: $.items[?(@.price > 10)] selects items whose price is above 10.
Is JSONPath standardized?
Yes, since RFC 9535 (2024). Older libraries may still differ in filter syntax and edge cases.
Is my JSON uploaded?
No. Expressions are evaluated in your browser.
¿Puedo instalar JSONPath Tester como aplicación web y utilizarla sin conexión?
Sí. JSONPath Tester es una aplicación web instalable (PWA): se instala desde el navegador, no se descarga desde una tienda de aplicaciones. Haz clic en «Instalar aplicación» en la parte superior de esta página en Chrome o Edge (Windows, macOS, Linux, ChromeOS) o, en Android, utiliza «Compartir» → «Añadir a la pantalla de inicio» en iPhone y iPad, o «Archivo» → «Añadir al Dock» en Safari 17+ en un Mac. A continuación, se abrirá en su propia ventana con su propio icono y, como se ejecuta íntegramente en tu navegador, seguirá funcionando sin conexión. Firefox en el ordenador de sobremesa no permite instalar aplicaciones web. Cómo funciona la instalación.

Herramientas relacionadas