The JSONPath expression tester evaluates JSONPath queries against JSON input. Supports $, dot notation, bracket notation, wildcards, recursive descent (..), array slices, and filter expressions.
JSONPath Quick Reference
$root object$.keychild property$.*all children$[0]array index$[0:2]array slice$..*recursive all$[*].keyarray map$[-1]last item$[?(@.n>5)]filterHow to Use the JSONPath Tester
JSONPath is a query language for JSON, similar to XPath for XML. The tester parses your JSON and evaluates the expression, returning all matching values with their paths.
Step 1: Provide JSON Input
Paste valid JSON into the left panel. Arrays, objects, and nested structures are all supported. Click "Load example" for a sample store catalog with books and prices.
Step 2: Enter a JSONPath Expression
All JSONPath expressions start with $ (the root). Use dot notation ($.store.name) or bracket notation ($['store']['name']). For arrays use $.items[0] or $.items[*] for all elements.
Step 3: Read the Results
Matching values appear with their JSONPath address and formatted value. Objects and arrays are shown as formatted JSON. The result count badge updates as you type.
Filter Expressions
Filter expressions select array items matching a condition: $.books[?(@.price < 10)] selects books under $10. @ refers to the current item. Supported operators: == != < > <= >=.
Frequently Asked Questions
Is this JSONPath tester free?
Yes, completely free with no signup. All JSON processing runs locally in your browser.
What is JSONPath?
JSONPath is a query language for JSON, similar to XPath for XML. It uses $ to reference the root object, . for child nodes, [] for array indexes, * for wildcards, and .. for recursive descent. Example: $.store.book[*].author selects all author fields in the book array.
What JSONPath expressions are supported?
Supported: $ (root), . (child), [] (subscript), * (wildcard), .. (recursive descent), [start:end] (array slice), [?(@.field)] (filter expressions). Example: $.users[?(@.age > 18)].name selects names of users over 18.
Is JSONPath standardized?
JSONPath was originally defined by Stefan Goessner in 2007 and became an IETF draft standard (RFC 9535) in 2024. Different implementations have slight variations in filter expression syntax and edge case handling.
How is JSONPath different from JMESPath?
Both query JSON, but with different syntax. JSONPath uses XPath-inspired syntax ($, [], .). JMESPath (used in AWS CLI) uses a different query language with functions. JSONPath is more common in REST APIs and testing tools; JMESPath is mainly used in AWS tooling.