Testador JSONPath
Teste expressoes JSONPath contra um documento JSON e veja os resultados instantaneamente.
Voltar para todas as ferramentas
Exemplos
Entrada
A coloracao sintatica esta desligada para este documento.
Matches
Matches appear here.
Funciona inteiramente no seu navegador.
Sobre esta ferramenta
Esta ferramenta implementa a sintaxe JSONPath definida no RFC 9535. Ela suporta notação pontilhada, notação colchete, descida recursiva, curingas, fatias de array e expressões de filtro. Ela não implementa todos os recursos do RFC, mas cobre os casos de uso mais comuns.
Como usar
- Paste your JSON into the editor, or load the sample.
- Type a query, or press one of the examples. Results update as soon as you stop typing.
- Select a match to highlight it in the editor, and read the count above to confirm the query did what you meant.
Supported syntax
| $ | The whole document |
| $.store.book | A child by name |
| $['a name'] | A name that has a space or punctuation in it |
| $.store.* | Every child of a value |
| $.book[0], $.book[-1] | An element by position, counting back from the end with a minus |
| $.book[1:4], $.book[::2] | A range of elements, with an optional step |
| $.book[0, 2], $['a', 'b'] | Several selectors at once |
| $..price | The same selector at every depth |
| $.book[?@.price < 10] | Only the values that pass a test |
| $.book[?@.isbn] | Only the values that have a given key |