Check an API response field
Target a value such as $.user.id before implementing extraction in your application. The tester does not contact the server or check how recent the pasted response is.
Query JSON data with a simple JSONPath expression. Processing is performed directly in your browser.
Invalid JSON or unsupported path. Use property names, quoted keys or nonnegative integer indices; filters, wildcards and recursive descent are not supported.
This tester selects one value from a JSON document using a simple path. Use it to locate a nested field, verify an array index or investigate a missing property in a copied API response. Results are displayed as JSON: objects keep their structure, strings retain quotation marks and null stays distinct from no match. Evaluation happens in your browser. The tool neither calls an API URL nor uploads the document to a query service.
Start the path with $, representing the whole document. Dot notation selects ordinary properties, such as $.user.name. Brackets containing an integer select an array entry, starting at zero. Only nonnegative integer indices are supported: a three-element array has positions 0, 1 and 2.
Write keys containing spaces, dots or hyphens inside quoted brackets. $["a.b"] selects the literal name a.b, while $.a.b selects b inside a. Both single and double quotes work for bracketed keys. Special characters need the escape sequences recognized by the selector.
This is a navigation subset rather than a complete RFC 9535 implementation. Filters, wildcards, slices, negative indices and recursive descent are rejected explicitly. An expression such as $..name must be replaced with an exact path; it is not treated as a global search. A supported expression selects at most one value, not a standardized node list.
The browser parses values using JavaScript JSON types. Numbers outside its precision range may therefore be rounded when the result is read and serialized. Supply large identifiers as strings. Only the document’s own properties are traversed: an inherited name such as constructor cannot become a false match.
Paste the complete JSON body without HTTP headers or Markdown fences. Root arrays are supported and can be traversed directly using $[0].
Begin with $, add properties incrementally and use brackets for indices or special keys. Filter expressions copied from another engine are not supported here.
Run the expression and inspect both the result and its JSON type. Editing the document or path hides the previous result so it is not mistaken for a current selection.
Target a value such as $.user.id before implementing extraction in your application. The tester does not contact the server or check how recent the pasted response is.
Select the first entry with [0], then try another known index. An out-of-range index yields no match rather than creating a replacement entry.
Compare dot notation with a quoted key to distinguish nested objects from a single property whose name actually includes a separator.
The first brackets select a.b as a complete name; [0] selects the first object and the final brackets select quoted key. Output is a valid JSON string including its quotes.
Input
{"a.b":[{"quoted key":"Ada"}]}
$["a.b"][0]['quoted key']Result
"Ada"The empty document has no own constructor property. The tester returns its no-match marker even though JavaScript objects normally inherit that name through their prototype.
Input
{}
$.constructorResult
[]This tester implements exact property and index paths only. Unsupported syntax is rejected instead of returning incomplete results presented as full standard compliance.
Put the entire key inside quoted brackets, for example $["a.b"]. The expression $.a.b describes two object levels and does not address that same literal key.
Zero. [0] selects the first entry and [1] the second. Negative indices, fractional indices and slices are unavailable; a nonexistent position produces the no-match marker [].
Output preserves the selected JSON type: "Ada" is a JSON string, while Ada without quotes is not valid JSON. Objects and arrays are serialized with indentation for readability.
Related tools
Tools similar or complementary to this one.
Format, minify, and validate JSON to make it easier to read or more compact.
Validate a JSON document against a schema and locate every error precisely.
Test an XPath expression against XML and immediately inspect the matching results.
Understand ISO 8601 week numbers, Unix timestamps in seconds or milliseconds, and the difference between human-readable dates and technical time values.