{DT}DevToolkit
$.

JSONPath Tester

Test JSONPath expressions against your JSON data. Extract and filter with live results.

JSONPath Expression

Example Queries

JSON Data

Results

Query results will appear here...

JSONPath Syntax Reference

$

Root object

.property

Child property

['property']

Child property (bracket notation)

..

Recursive descent

*

Wildcard (all children)

[n]

Array index

[start:end]

Array slice

[0,1,2]

Multiple indices

[?(@.price<10)]

Filter expression

What is JSONPath?

JSONPath is a query language for JSON data, analogous to XPath for XML. It lets you navigate and extract values from JSON documents using path expressions. Originally proposed by Stefan Goessner in 2007, JSONPath is widely used in REST APIs, testing frameworks, and data pipelines.

A JSONPath expression always starts with $ (the root object), followed by child accessors, array indices, wildcards, or filter expressions. For example, $.users[*].email extracts all email addresses from a users array.

How to Use

  1. Paste your JSON data in the left panel
  2. Enter a JSONPath expression in the search box (e.g., $.store.book[*])
  3. Results update automatically as you type
  4. Click example queries to try common patterns
  5. Copy the results or share the query with your team

Common Patterns

$.users[*].name

Get all user names from an array

$..id

Find all id values at any depth

$.items[0:5]

Get first 5 items from array

$.products[?(@.inStock==true)]

Filter products that are in stock

Features

  • Real-time query results
  • Full JSONPath syntax support
  • Filter expressions
  • Array slicing
  • Recursive descent
  • Path display for each result
  • Example queries included
  • Shareable results

Frequently Asked Questions