DiagramPreview
Analizador básicoSin IAVista localExportarDepuración

Probador JSONPath

Pega contenido para Probador JSONPath y genera una vista local revisable para depurar configuración, respuestas de API, archivos SEO y fragmentos generados con AI.

Ejemplos
Matched valuesListo
Your JSONPath matches will appear here.

Continúa con una herramienta relacionada

Lleva esta vista previa a un flujo cercano para convertir, depurar o exportar.

Cómo usar

  1. 1Paste a representative JSON payload and keep the first line as the JSONPath expression.
  2. 2Use samples such as email extraction, first order total, or recursive duration to learn the expected input shape.
  3. 3Check match count, first match, and result rows before copying the expression into tests or documentation.
  4. 4If the result is empty, simplify the expression one segment at a time until the path starts matching again.

Casos de uso

API response debuggingWebhook payload reviewTest assertion designAI JSON output validationNested array inspection

FAQ

Why does my JSONPath return no matches?

The most common causes are a missing root selector, an array segment that needs [*], a field name typo, or a payload shape that differs from the example used to write the expression.

How do I debug a complex JSONPath expression?

Start with $ or a known top-level field, then add one segment at a time. Confirm the match count after each step before adding filters or recursive selectors.

Is this a replacement for a production JSONPath library?

No. Use it as a preview and review surface, then verify final behavior with the same JSONPath library used by your application or tests.

JSONPath Tester helps you inspect API responses, fixture files, webhook payloads, and AI-generated JSON without writing a temporary script.

The preview highlights matched values, result shape, and a match table so you can confirm whether an expression is selecting the field you expected.

It is especially useful for test assertions, monitoring payload checks, documentation examples, and debugging nested arrays where a wrong wildcard silently returns too much or nothing.

Demo: extract user emails from a nested API response

A practical JSONPath review starts with a payload that looks like production but removes sensitive values. The tester should show both the matched values and the path shape so you can turn the expression into a test assertion.

  • Use $..email when email fields can appear at different depths.
  • Use $.users[*].email when the schema is stable and you want stricter matching.
  • Prefer strict paths for tests and recursive paths for exploration.
$.users[*].email
{
  "users": [
    {"id": 1, "email": "ada@example.com"},
    {"id": 2, "email": "grace@example.com"}
  ]
}

The first line is the expression; the rest is the JSON payload to inspect.

JSONPath mistakes worth catching before code review

A JSONPath expression can look correct while selecting the wrong level of a nested payload. Previewing the result makes these mistakes visible before they become flaky tests or broken docs.

  • Recursive selectors can match fields from unrelated objects.
  • Array indexes such as [0] are fragile when examples do not represent production order.
  • Filters should be checked against payloads with both matching and non-matching records.

Checklist de revisión para Probador JSONPath

Usa Probador JSONPath para inspeccionar visualmente contenido fuente antes de publicar documentación, notas de PR, incidentes o handoffs. Probador JSONPath: Previsualiza y depura esta fuente en una superficie local para documentación técnica.

Antes de exportar, revisa legibilidad, relaciones, datos sensibles y si la vista sigue teniendo sentido tras editar la entrada.

Límites y solución de problemas

Si la vista falla, reduce la entrada al ejemplo completo más pequeño, valida la sintaxis y agrega secciones gradualmente.

Trata la vista como superficie de revisión, no como fuente de verdad. Los resultados críticos requieren validación humana.

Entradas de ejemplo

  • User emails: $.users[*].email --- { "users": [ {"id": 1, "email": "ada@example.com", "role": "admin"}, {"id": 2, "email": "lin@example.com", "role": "viewer"} ] }
  • First order total: $.orders[0].total --- { "orders": [ {"id": "ord_1", "total": 49.9}, {"id": "ord_2", "total": 19.5} ] }
  • Recursive duration: $..durationMs --- { "trace": { "durationMs": 340, "spans": [{"name": "api", "durationMs": 120}, {"name": "db", "durationMs": 180}] } }

Madurez de la herramienta

Analizador básico

Analizador básico

Esta herramienta se centra en inspección rápida de estructura. Úsala para revisar y depurar, y valida lo crítico antes de producción.

La etiqueta indica si la herramienta sirve mejor para exportar, depurar, analizar rápido o generar con AI.