Testeur JSONPath

Exécutez des requêtes JSONPath sur tout document JSON. Résultats et chemins en temps réel.

Try: $..price, $.store.books[?(@.price < 20)].title, $.store.books[*].tags[0], $..*
Saisissez une entrée ci-dessus pour voir le résultat.

What is this for?

JSONPath is to JSON what XPath is to XML — a query language for plucking specific values out of a nested document without writing custom code. $.store.books[*].title says "give me every book title under store"; $..price says "every price anywhere in the document". This tool runs a query live against any JSON you paste, showing both the matched values and the paths they came from, so you can iterate on the query until it returns exactly what you want.

When to use it

Quick syntax reference

Common gotchas