🎯

JSON Path Tester

Test JSONPath expressions against your JSON data.

Input
Path Result

📖 What is JSON Path Tester?

JSONPath is a query language for JSON, similar to XPath for XML. This tester lets you write a JSONPath expression and see which parts of your JSON data it selects. Use it to build and debug JSONPath queries for API testing, data extraction, or configuration filtering. Paste your JSON, write a path expression, and see the results live. Everything runs in your browser.

💡 Example

Input
Data: {"store":{"books":[{"title":"A"},{"title":"B"}]}} Path: $.store.books[*].title
Output
["A", "B"]

🛠️ Common Use Cases

  • Building JSONPath queries for API testing tools (Postman, REST Assured)
  • Extracting specific fields from large JSON API responses
  • Writing JSONPath expressions for monitoring and alerting systems
  • Debugging data extraction in ETL pipelines
  • Learning JSONPath syntax with instant visual feedback

📝 JSONPath Syntax Reference

  • $ — the root object
  • $.key — child key of root
  • $.store.books[0] — first element of array
  • $.store.books[*] — all elements of array
  • $..title — recursive descent, find all "title" keys at any depth
  • $.store.books[?(@.price<10)] — filter expression
  • $.store.books[-1] — last element of array

⚠️ Common Mistakes

  • Forgetting $ — JSONPath expressions must start with $ for the root element
  • Bracket vs dot notation — use brackets for keys with special characters: $["my-key"]
  • Filter syntax — filter expressions use @ for the current element: [?(@.age>18)]

❓ Frequently Asked Questions

What is the difference between JSONPath and jq?
JSONPath is a query language commonly used in testing tools and APIs. jq is a command-line JSON processor with more powerful transformation capabilities. JSONPath is simpler for basic field selection.
Does JSONPath work in Postman?
Yes — Postman supports JSONPath syntax in test assertions. Use this tool to build and verify your expressions before pasting them into Postman tests.
What does the recursive operator .. do?
The double-dot operator searches the entire JSON tree at any depth. For example, $..name finds every "name" key regardless of nesting level.
Is my data private?
Yes — all processing runs entirely in your browser. Your data is never sent to any server.
Is this tool free?
Completely free — no login, no usage limits, works offline once loaded.
Yes — completely free, no login required, no usage limits.
Is my data private?
Yes — all processing runs in your browser. Your data is never sent to any server.
Does it work offline?
Yes — once the page is loaded, the tool works without an internet connection.
🔒
Your data stays private. All processing happens entirely in your browser using JavaScript. Nothing is ever sent to our servers. You can even use this tool offline after the page loads.