JSONPath Tester
Query JSON payloads with a safe JSONPath subset and inspect every matched path/value pair locally.
JSON input
JSON document to query
Matches
Matched JSONPath values
$.store.book[0].title"Payload APIs"
$.store.book[1].title"Schema Contracts"
How to test JSONPath queries
Paste JSON, enter an expression such as $.items[*].id or $..price, and run the tester. The output lists each matched path and value so developers can confirm selectors before using them in tests or data pipelines.
Common developer use cases
Use JSONPath testing for API response assertions, contract checks, QA fixtures, log inspection, and data engineering payload exploration where you need exact field paths.
Limitations
JSONPath has multiple dialects. PayloadHarbor supports a predictable safe subset and does not evaluate filter scripts or custom expressions.
JSONPath questions
- What JSONPath syntax is supported?
- The browser-local tester supports root $, dot properties, bracket properties, array indexes, wildcards, and recursive descent by property name.
- Are JSONPath filters supported?
- No. Filter expressions are not enabled because many dialects differ and unsafe expression evaluation is intentionally avoided.
- Does the tool upload JSON?
- No. JSON parsing and query matching happen inside your browser session.
What this JSONPath Tester does
Use this JSONPath tester to run browser-local JSONPath queries against API responses, logs, fixtures, and data pipeline samples. It reports matched JSON paths and values so developers can confirm selectors before adding them to tests or extraction code.
When developers use it
- Test JSONPath selectors for API response assertions, QA checks, and payload contract reviews.
- Inspect nested arrays and objects in copied JSON logs without uploading data.
- Confirm recursive field lookups such as $..id or wildcard paths such as $.items[*].name.
Privacy, input, and output
JSON parsing and JSONPath matching happen locally in browser memory. PayloadHarbor does not upload the source JSON or query expression to an application backend.
Paste valid JSON, enter a JSONPath expression, and run the tester. The output lists every matched path with its value and can be copied or downloaded as JSON.
Validation rules and limitations
- The tester supports a safe JSONPath subset: root, dot properties, bracket properties, indexes, wildcards, and recursive descent by property name.
- Filter expressions and script evaluation are intentionally not supported because JSONPath dialects differ and arbitrary evaluation is unsafe.