Same lineage as XPath, simpler syntax
A dollar sign marks the root, dots take keys, brackets take indices or filters. $.store.book[0].title reads the first title; $..price descends recursively to any depth; $..book[?(@.price<10)] filters by comparison. The tool pairs source JSON with an expression, presets and an empty-omitting toggle, and reports each hit with its path — more useful than bare values, since you learn where each value came from.
Steps
- Paste JSON and type an expression, or pick a preset.
- Tick skipping of nulls, empty strings, arrays and objects.
- Query and read paths with values line by line.
- Copy or download the result, or clear.
- Load the sample to see nested and array shapes side by side.
Five common forms
Wildcards: bracket-star over array elements, dot-star over object values. Slices: a range for the first items, minus one for the last, a step for every second. Recursive descent walks every descendant and explodes on large documents. Filters support comparisons and logic, where the at sign means the current element. Unions pull several keys in one expression.
When the result comes back empty
Check the root first: expressions start with the dollar sign unless the tool permits omission. Then check hierarchy — keys use dots or quoted brackets, indices use numeric brackets, and mixing them returns nothing. Keys containing dots or spaces require quoted brackets, so a key literally named a dot b needs that form. Filter comparisons are type-sensitive, and out-of-range indices return empty rather than erroring.
Common mistakes
Confusing JSONPath with JSON Pointer, which uses slashes and supports no filters. Forgetting zero-based indexing, the opposite of XPath. Overusing recursive descent, which walks the entire document and stalls on multi-megabyte payloads. Using the wrong operator in filters, where a single equals carries assignment meaning and tolerance varies by implementation. And assuming stable ordering, which the specification does not guarantee.
Where it stops:Strict typing and validation belong to JSON Schema. High-throughput extraction wants pre-compiled expressions rather than per-call parsing. Stable maintainable paths favour JSON Pointer for its lack of wildcards and filters. Cross-language consistency needs a dialect check, since filter syntax and function support differ between implementations of the same nominal standard.