🔍
developer

JSON Path Tester

Test JSONPath expressions against JSON data. Supports dot notation, arrays, slicing, and wildcards.

json path testerjsonpath evaluatorjson queryjson path onlinejson extractor

JSON path tester

Test JSONPath expressions

Paste JSON and enter a path expression to extract matching values instantly.

Quick reference

$.key — root-level key
$.a.b.c — nested key
$.arr[0] — first array element
$.arr[-1] — last array element
$.arr[*] — all array elements
$.arr[0:3] — slice (index 0-2)

How to use

How to Use the JSON Path Tester

  1. 1 Paste your JSON data into the left input area.
  2. 2 Enter a JSONPath expression in the path field (e.g., $.store.books[0].title).
  3. 3 Click Evaluate to extract matching values.
  4. 4 Use Format JSON to pretty-print the input. Use Copy to copy results.
  5. 5 Refer to the quick reference for supported path syntax.

JSONPath is a query language for extracting data from JSON documents, similar to XPath for XML. This tester supports dot notation ($.key.subkey), array indexing ([0], [-1] for last), wildcards ([*] for all elements), and array slicing ([0:3] for elements 0 through 2). The $ symbol represents the root object and can be omitted.

Common use cases include extracting specific fields from API responses, testing data extraction queries before implementing them in code, and debugging complex JSON structures. For nested arrays, you can chain selectors: $.users[0].addresses[*].city extracts all city values from the first user's addresses. The tool processes everything in your browser — no data leaves your machine.

More Developer tools

Related tools

You might also like