☀️
🌙

Paste JSON on the left, type a JSONPath expression here, and view results on the right. Output updates automatically as you type.

JSON Input, You can also import from

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

The JSON must be valid. If parsing fails, an error will appear in the Evaluation Results panel.

Evaluation Results

Output Paths
No result. Try a different JSONPath expression.
              
How to Use This Tool

This JSONPath Evaluator allows you to explore, test, and validate JSONPath expressions in real-time. The results update automatically as you type, enabling a fast and interactive workflow.

Basic Steps

  • Paste or import JSON into the JSON Input panel on the left.
  • Enter a valid JSONPath expression in the textbox above the panels.
  • The tool automatically evaluates the expression and displays matching results.
  • If the JSON is invalid, an error message appears in the right panel.

Importing JSON Files

  • Click the Import File button above the JSON input panel.
  • Supported formats include .json or any text file containing valid JSON.
  • Once loaded, the editor will instantly refresh and evaluate the first query.

Editing & Navigation

  • The JSON editor supports scrolling while keeping line numbers aligned.
  • Scroll the results panel independently to explore large outputs.
  • Use indentation and proper formatting for best readability.

Using Output Paths Mode

  • Enable the Output Paths toggle to return the matching JSONPath locations instead of values.
  • This is especially useful when debugging nested structures or locating problematic fields.

Tips for Effective Querying

  • Use the recursive operator $..* when you're unsure of the depth.
  • Filters such as [?(@.price < 20)] help locate specific items.
  • Wildcard * is helpful for exploring unknown keys or indexes.
JSONPath Reference & Syntax

Basic Syntax

  • $ — Root of the document
  • $.store.book — Child nodes
  • $..author — Recursive search
  • $.books[0] — Array index
  • $.books[*] — Wildcard all items

Filtering Examples

  • $.books[?(@.price < 20)]
  • $..[?(@.year >= 2020)]
  • $.books[?(@.author == "John")]

Advanced Operators

  • .. — Recursive descent
  • @ — Current node
  • * — Wildcard for any key/index

Useful Expressions

  • All keys: $..*
  • All values: $..[?(@)]
  • All items with a specific field: $..[?(@.title)]

Official Specification

JSONPath Standard — RFC 9535