Development
REPL interativo de JSONPath
Um REPL interativo de JSONPath que executa pipelines de consulta de várias etapas sobre qualquer JSON. Escreva uma expressão JSONPath por linha (ex. $..book[?(@.price<10)] depois $[0:5]) e veja as correspondências de cada etapa com contagens, caminhos e valores — além de uma URL compartilhável que codifica seus dados e pipeline. Suporta descida recursiva ($..), curingas ([*]), filtros ([?(@.price<10)]), slices ([0:5:2]) e índices negativos.
Início rápido
Chame esta ferramenta a partir do seu código em três idiomas.
curl -X POST 'https://api.elysiatools.com/pt/api/tools/jsonpath-repl-playground' \
-H 'Content-Type: application/json' \
-d '{"json":"{\n \"store\": {\n \"book\": [\n { \"category\": \"reference\", \"author\": \"Nigel Rees\", \"title\": \"Sayings of the Century\", \"price\": 8.95 },\n { \"category\": \"fiction\", \"author\": \"Evelyn Waugh\", \"title\": \"Sword of Honour\", \"price\": 12.99 },\n { \"category\": \"fiction\", \"author\": \"Herman Melville\", \"title\": \"Moby Dick\", \"price\": 8.99 },\n { \"category\": \"fiction\", \"author\": \"J. R. R. Tolkien\", \"title\": \"The Lord of the Rings\", \"price\": 22.99 }\n ],\n \"bicycle\": { \"color\": \"red\", \"price\": 19.95 }\n }\n}","pipeline":"$..book[?(@.price < 10)]\n$[*].title","mode":"values","maxResults":100,"historyTitle":"Cheap books — titles"}'