Illustration of a JSONPath expression querying a JSON document and highlighting matched values

JSON Path Tester

Paste JSON, type a JSONPath expression, and see every match live. Runs entirely in your browser — nothing is ever uploaded.


ℹ️ JSONPath syntax reference
  • $ the root; .key or ['key'] child access; * or [*] wildcard (all children); ..key recursive descent (find key at any depth).
  • [0] array index (negative counts from the end); [0,2] multiple indices; [1:3] slice, [::2] slice with a step.
  • [?(@.price < 10)] filter by comparison (==, !=, <, <=, >, >=); [?(@.isbn)] filter by existence.
  • Runs entirely client-side on this page — nothing you paste here is ever sent anywhere. The JSON API below is a separate, opt-in endpoint for scripts.
💻 Show API usage example (cURL)
curl -sS "https://devops.majbase.com/jsonpath-tester/api" \
    --data-urlencode 'json={"store":{"book":[{"author":"A","price":8.9}]}}' \
    --data-urlencode 'path=$.store.book[*].author'

Returns {"matches": [{"path": "$.store.book[0].author", "value": "A"}, ...]}, or {"error": "..."} for malformed JSON or an invalid path.