Deeply nested API responses bury the value you need five levels down: data.results[3].user.profile.email. Finding it by eye in a wall of braces is slow; mistyping the path in code costs a debugging round-trip. A path finder shows the structure as a navigable tree and hands you the exact path expression.
Paste JSON, click any value in the tree, and copy its precise access path — ready for JavaScript, Python, or your favorite JSON library.
How to Use This Tool
- Paste your JSON document.
- Explore it as a collapsible tree.
- Click the value you need — its full path is displayed.
- Copy the path into your code.
Frequently Asked Questions
When do I need bracket notation instead of dots?
Whenever a key contains characters illegal in identifiers: spaces, hyphens, or starting digits. user.first-name fails in JavaScript; user["first-name"] works. Array elements always use brackets with a zero-based index: items[0].
What is JSONPath?
A query language for JSON ($.store.book[2].title) analogous to XPath for XML, supported by tools like jq-style processors, Postman, and many libraries. The paths this tool produces map directly onto JSONPath and plain code access.
Why does my path return undefined in code?
Usually one of three things: an array index where an object key was expected (or vice versa), a typo in a key name (they are case-sensitive), or an optional level that is missing in some responses. Optional chaining (user?.profile?.email) guards against the last one.