Pular para o conteúdo

🔎 Testador de JSONPath

Avalia consultas JSONPath (como $.store.book[*].author) em tempo real contra dados JSON. Suporta filtros, descida recursiva e wildcards.

100% Free No signup Browser-only 5 languages Dark mode

🔒 Sobre Privacidade


    
📚 Ajuda de Sintaxe JSONPath
$ — Objeto raiz
@ — Nó atual (dentro do filtro)
.field / ['field'] — Acesso a elementos filhos
.. — Descida recursiva (profundidade arbitrária)
* — Curinga (Todos os Elementos)
[index] — Especificação de <code>index</code> do array
[start:end:step] — Fatia de array
[a,b,c] — Múltiplos <code>index</code>/campos
[?(@.price < 10)] — Expressão de filtro
[?(@.tags)] — Verificação de existência de campo

📖 Como usar

  1. 1
    Paste JSON
    Paste the JSON document on the left. The Sample button loads example data.
  2. 2
    Enter a query
    Type a JSONPath expression starting with $. Results update live. Filters and wildcards are supported.
  3. 3
    Inspect the result
    Matching values are pretty-printed on the right with the match count and any errors.

❓ Perguntas frequentes

What is JSONPath?
A query language for JSON, analogous to XPath for XML. It uses $ as the root and supports dot/bracket notation and filter expressions.
How do I write filters like [?(@.price < 10)]?
@ refers to the current node. Comparison and logical operators (==, !=, <, <=, >, >=, &&, ||) are supported. Wrap string literals in single quotes.
When should I use the recursive descent (..)?
Use it to find all matches at any depth. $..author collects the author field wherever it appears in the document.

🔗 Ferramentas relacionadas

🐛 Você encontrou um problema com esta ferramenta?

Completamente gratuito e sem registro. Até as etapas de reprodução são suficientes. Os relatos recebidos chegam diretamente aos operadores e servem como referência para correções.

※ Para reproduzir problemas, informações do navegador (UA / tamanho de tela / idioma / URL) são enviadas automaticamente