JSON Path Query Builder

Visually explore your JSON structure and build JSONPath expressions by clicking elements. Test path expressions instantly against your data.

Click any value in the tree to select its path. Use the test box to evaluate expressions.
Input JSON
Interactive Explorer
Selected Path:
Click a value in the tree below...
Parse your JSON to see the interactive tree...

Features

🏗️ Visual Tree Explorer

  • Collapsible nested nodes
  • Color-coded value types
  • Click-to-select any value
  • Instant path generation

Path Expression Tester

  • Supports $.key.subkey
  • Array index: [0], [1]
  • Wildcard: [*] for all items
  • Instant result preview

JSONPath Builder Guide

How to Use the JSON Path Builder

JSONPath is a query language for JSON, similar to XPath for XML. It lets you select and extract specific values from a JSON document using a compact path expression. The JSON Path Builder makes this visual — paste your JSON, click any value in the tree, and instantly get the corresponding JSONPath expression.

  1. Paste your JSON into the input panel on the left, or click "Load Sample" to try a built-in example.
  2. Click "Parse & Explore" to render the interactive JSON tree in the right panel.
  3. Click any value (strings, numbers, booleans, or nulls) in the tree to auto-populate the "Selected Path" box with its JSONPath expression.
  4. Test expressions by editing the path in the test box and clicking "Test" to see the matched value instantly.
  5. Copy the path using the copy button and paste it into your code, AWS EventBridge rules, or jq queries.

JSONPath Syntax Reference

$                   — Root of the document
$.name              — Property "name" on the root object
$.address.city      — Nested property access
$.books[0]          — First element of the "books" array
$.books[0].title    — Property on array element
$.books[*]          — All elements of "books" array (wildcard)
$.books[*].author   — "author" field from every book