JSONPath Playground
Evaluate JSONPath queries against API payloads. Pure client-side processing.
What is a JSONPath Tester?
A JSONPath tester lets you write and evaluate JSONPath expressions against JSON data in real-time. JSONPath is a query language for JSON, similar to XPath for XML. It allows you to extract specific values, filter arrays, and navigate complex nested JSON structures using expressions like $.store.book[*].author or $..price. Our free online JSONPath playground processes everything client-side and supports the full JSONPath specification.
How to Test JSONPath Expressions Online
- 1Paste your JSON data
Enter the JSON document you want to query in the JSON input panel.
- 2Write a JSONPath expression
Enter a JSONPath expression like $.users[*].name in the expression field.
- 3View results
Matching values are highlighted in the JSON and shown in the results panel in real-time.
- 4Refine your query
Adjust your expression and see results update instantly. Use filters like [?(@.age > 21)] for complex queries.
Frequently Asked Questions
What is the difference between JSONPath and jq?
JSONPath and jq are both query languages for JSON. JSONPath uses dot notation ($.store.book) and is commonly used in JavaScript/Java ecosystems. jq is a command-line tool with its own syntax. DevDeck uses JSONPath syntax.
Can I filter arrays with JSONPath?
Yes. Use filter expressions like $..book[?(@.price < 10)] to find books cheaper than $10, or $..book[?(@.author == "Tolkien")] to filter by author.
What JSONPath implementation does this use?
DevDeck uses the jsonpath-plus library, which supports the full JSONPath specification including recursive descent (..), wildcards (*), array slicing, and filter expressions.
Why Use DevDeck?
Testing JSONPath expressions against large API payloads is common in API development. DevDeck processes everything locally, so your sensitive API data stays on your device.