How to Use
- Click Load sample, or paste an API response or config snippet into JSON Source.
- Type a JSONPath query in JSONPath Expression, such as
$.store.book[*].authoror$..author. - Review match count, paths, and values in Matched Results; click Copy result JSON to copy the matches as an array.
- Use the in-tool cheat sheet when you need a syntax reminder. This evaluator covers common JSONPath patterns; check highly specific dialect features against your target runtime.
Core Features
- Real-time JSONPath evaluation: Re-run queries as you type, ideal for API responses, config files, and test payloads.
- Local processing by design: JSON parsing, path matching, and result copying happen in the current browser session without sending payloads to a server.
- Path-aware results: Every match shows its JSONPath location plus a formatted value, making nested data easier to inspect.
- Highlighted source preview: Valid JSON is formatted with lightweight highlighting for strings, numbers, booleans, and null values.
- Built-in syntax cheat sheet: Use root selectors, dot notation, array wildcards, recursive descent, slices, and common filter expressions without leaving the tool.
Related Tools
Secure JSON formatter: format, validate, and fix JSON locally. Beautify/minify, highlight errors, generate TypeScript or Zod, convert to XMLโprivate. Try now.
Convert JSON objects or arrays to CSV locally in your browser. Flatten fields, preview the result, then copy or download CSV without uploading data.
Convert CSV text or files to JSON arrays locally in your browser. Supports headers, comma/semicolon/tab delimiters, drag-and-drop files, copy, and download with no uploads.
Compare two JSON documents locally in your browser. Sort object keys for a semantic diff, ignore key-order noise, and mark added, removed, and modified fields without uploads.
Minify JSON into one line, remove indentation and line breaks, and compare original size, minified size, saved bytes, and saved percentage.
Free online JSON to TypeScript converter. Instantly generate TypeScript interfaces and types from your JSON payloads. 100% private, client-side code generation.
Convert YAML to formatted JSON locally in your browser. This developer tool supports live conversion, multi-document YAML, line-aware errors, copy, and JSON download without storing data.
Convert JSON to YAML locally in your browser with live conversion, strict JSON validation, error details when available, copy, and YAML download. No data is uploaded.
Calculation Logic
This tool uses local JavaScript JSONPath evaluation in the browser: it parses text with JSON.parse, then walks object and array tokens for properties, indexes, wildcards, recursive descent, slices, and common filter comparisons. The whole process stays in the current page memory and does not require a server, which makes it suitable for API payloads containing keys, user records, or internal configuration.
To avoid overstating compatibility, the implementation focuses on common JSONPath patterns such as $.store.book[0].title, $..author, $.store.book[*], and $.store.book[?(@.price < 10)]. JSONPath dialects vary across ecosystems, so highly custom script expressions should still be checked against your target runtime.
FAQ
- Is it safe to paste API responses with user data here?
- Yes. The tool runs client-side only, so your JSON is not transmitted to a server.
- Does it support filter expressions?
- It supports common comparison filters such as
[?(@.price < 10)]and[?(@.category == "fiction")].
- It supports common comparison filters such as
- Why can the same JSONPath return different results in another tool?
- JSONPath has multiple historical dialects. JS, Java, and Python evaluators may differ on edge cases, while this tool focuses on common modern query syntax.
- Why is the output always an array?
- A JSONPath query can match zero, one, or many nodes. Results are normalized to a JSON array for copying and downstream use.
- Can I use it offline?
- After the page loads, JSON parsing and querying do not depend on backend services; current-page inputs keep working without a network connection.