About this JSONPath generator
Paste JSON on the left. The structure tree on the right follows that document—expand nodes, click a field or index, and the JSONPath appears in the path bar at the bottom of the right pane. Copy it, then open the JSONPath tester with the same JSON to run the expression and read values as a JSON array.
The generator only builds the path string; it does not filter or extract data. Plain keys use dot notation ($.order.items), array indexes use brackets ([0]), and awkward key names use quoted segments ($['a.b']).
How clicking builds a path
Structure tree
Each row is one value in the parsed JSON. Use the arrow to open objects and arrays. Click the node label (including $ for the root) to select it. Expand all / Collapse all help on large payloads.
Path output bar
After you click a node, one RFC 9535-style JSONPath is shown in the bottom bar on the right. Copy from the icon or by clicking the path field. The hint above that bar explains that you can select $ or any field or index.
Generator vs tester
Use this page when you know the JSON but not the path. Use the JSONPath tester when you already have an expression and want every matching value in one array.
When keys need quotes
Identifiers made of letters, digits, and underscore continue with a dot. Keys that contain dots, spaces, hyphens, or non-ASCII characters are emitted as $['key'] so the path stays a single segment.
Typical use
API response — copy $.items[*].id
Paste a REST or GraphQL JSON body, drill into items, click id on one row or on the array node, and copy the generated path instead of counting brackets by hand.
Config files — nested settings
For deeply nested config JSON, expand the branch you care about and click the leaf. Paste the path into scripts, jq-style tools, or the tester to verify it returns the value you expect.