Paste a valid JSON object into the document editor and enter a path in the expression field. Start at the dollar sign, which represents the entire document, then name the property you want. The example below selects one name from an array and returns its value with its matching path. Use the path and value visibility options to inspect the result before copying it elsewhere.
Try a numeric index before replacing it with an array wildcard to select several items. This implementation provides a small path evaluator rather than the complete JSONPath language. Do not assume that recursive descent, slices, or filter predicates work just because another library accepts them. An empty result can mean that the property is absent, so check the document shape and spelling first.
JSON: {"users":[{"name":"Ada"}]}
Expression: $.users[0].name
Match path: $.users[0].name
Value: Ada
JSONPath is a query language for JSON, similar to XPath for XML. It supports wildcards, filters, and recursive descent. JSON Pointer (RFC 6901) is simpler — it only points to a single specific location. Use JSONPath when you need to match multiple nodes or filter by conditions.
$ represents the root of the JSON document. All JSONPath expressions start with $. For example, $.store.book[0].title navigates from root → store → book array → first element → title property.
Use [*] to select all elements. For example, $.users[*].name returns the name property of every object in the users array. You can also use .. for recursive descent to find all matching keys at any depth.
Yes, use filter expressions like $.books[?(@.price < 10)] to select books cheaper than $10. The @ symbol refers to the current element being evaluated. You can combine conditions with && (and) and || (or).
Extracting specific fields from API responses, navigating complex config files, testing API output in automated tests, and querying large datasets. JSONPath is also used in tools like Postman, Kubernetes, and various ETL pipelines.