JSON Path Extractor
Query JSON with dot paths and bracket indices — extract values at any key path.
- 100% client-side · your data never leaves your browser
- Instant, no rate limits
- Free, no sign-up
Enter JSON and a path.
Overview
JSON Path Extractor — Query JSON by Path
Extract values from JSON documents using dot paths and bracket indices. Enter paths like $.store.book[0].title or user.address.city and get the value at that location — object, array, string, number, or null. Fast debugging for API responses, config files, and nested event logs without writing code.
Path syntax
Paths can start with $ or omit it. Use dots for object keys and [n] for array indices. The tool walks the parsed JSON tree and returns the node at the path, pretty-printed as JSON.
When to use path extraction
- Confirm a nested field exists in a large API payload
- Pull one array element for tickets or docs
- Debug mapping between source JSON and your code's accessors
- Teach teammates how a nested document is structured
Path examples
Paths mirror how you'd access the same value in code, which makes them easy to reason about.
- $.user.name → the name inside the user object
- items[0] → the first element of the items array
- data.results[2].id → the id of the third result
- config.flags.beta → a deeply nested boolean
Faster than reading raw JSON
On a large, deeply nested payload, scrolling to confirm a single value is slow and error-prone. Typing the path returns just that node, pretty-printed, so you can verify a field's presence, type, and value in seconds — then wire the same path into your application code with confidence.
FAQ
Frequently asked questions
How do I extract a value from JSON by path?
Enter a dot/bracket path like $.store.book[0].title and JsonDrift returns the value at that location, whether it's an object, array, or scalar.
Is this full JSONPath?
It supports dot and bracket paths, not full JSONPath filter expressions or recursive descent.
Do I need the leading $?
No. Paths can start with $ or omit it — user.name and $.user.name both work.
What if the path is missing?
You'll get a clear error indicating which key or index was not found.
Continue with a related tool
All tools- JSON Pick & Omit Keys
Select or remove top-level keys from a JSON object — whitelist or blacklist fields.
- JSON Editor
Write, edit, format, minify, and validate JSON in a fast full-screen or embedded editor.
- JSON Formatter & Beautifier
Format, prettify, and beautify messy JSON with configurable indentation and key sorting.
- JSON Minifier
Compress JSON by removing whitespace to shrink payloads and speed up transfers.
- JSON Viewer & Tree Explorer
Explore JSON with an interactive collapsible tree view.
- JSON Escape & Unescape
Escape or unescape strings for code, logs, and API payloads.