JSON
JSONPath
Examples
Results
// results appear here

Jsonic's JSONPath Tester lets you evaluate JSONPath expressions against JSON data in real time. Type a path and results update instantly as you type. It supports the Goessner JSONPath spec: dot and bracket notation, wildcard (*), recursive descent (..), array slices ([1:3]), multi-index ([0,2]), negative indices ([-1]), and filter expressions ([?(@.price < 10)]). All evaluation runs client-side — your data never leaves the browser.

How to test a JSONPath expression

  1. Paste your JSON into the left panel (or click "Load example JSON").
  2. Type a JSONPath expression in the path field, starting with $.
  3. Results update automatically as you type.
  4. Click any example in the toolbar to load a sample expression.
  5. Click Share to copy a shareable link with your JSON and path pre-loaded.

FAQ

What is JSONPath?

JSONPath is a query language for JSON, analogous to XPath for XML. It was defined by Stefan Goessner in 2007. It is commonly used in APIs, test frameworks, and data pipelines to extract specific values from JSON structures.

What is the $ symbol?

$ represents the root of the JSON document. All JSONPath expressions start with $. For example, $.name selects the "name" field at the top level.

What does .. (double dot) mean?

.. is the recursive descent operator. It searches all levels of the document. $..price finds every "price" field anywhere in the JSON, no matter how deeply nested.

How do filter expressions work?

Filter expressions use the syntax [?(@.field op value)]. For example, $.books[?(@.price < 10)] returns all books with a price less than 10. Supported operators: ==, !=, <, <=, >, >=.

How do array slices work?

Array slices use Python-style syntax: [start:end]. [0:3] returns the first three elements, [1:] returns from index 1 to the end, [-2:] returns the last two elements.

Is my JSON sent to a server?

No. All JSONPath evaluation runs in your browser using JavaScript. Your data never leaves your machine.

Which JSONPath spec does this implement?

This implements the Goessner JSONPath specification (the original 2007 spec). It covers $, ., .., *, [], [n], [-n], [n:m], [n,m], [?()]. It does not support $ref or script expressions.