JSONPath Tester

Test JSONPath expressions against JSON data. Query and filter JSON with JSONPath syntax.

Examples: $.store.books[0] $..author $.store.books[*].title $.store.books[?(@.price < 10)]

JSONPath Syntax

%code $ Root object
%code .property Child property
%code [n] Array index (0-based)
%code [*] All elements
%code .. Recursive descent (all descendants)
%code [start:end] Array slice
%code [?(@.prop == val)] Filter expression

How to Use JSONPath Tester

  1. Paste your JSON document
  2. Enter a JSONPath expression (like $.store.book[*].author)
  3. See matching results highlighted
  4. Try common expression examples

About JSONPath Tester

Test JSONPath expressions against your JSON data. Query nested objects, filter arrays, and extract specific values. Essential for API development and data transformation workflows.

Frequently Asked Questions

What's JSONPath syntax?

JSONPath uses $ for root, . for child, [] for array access, * for wildcards. Example - $.users[0].name gets the first user's name.

How do I filter array elements?

Use [?(@.property == 'value')] syntax. Example - $.users[?(@.active == true)] finds active users.

Is this compatible with jq?

JSONPath and jq have different syntaxes. This tool uses JSONPath. Results may differ from jq queries.