← tools

JSONPath / JMESPath Playground

JSON Input
Result
Run a query to see results…
Example Queries
Quick Reference
JSONPath
$ Root element
.key Child key
..key Recursive descent — find key anywhere
.* All children (wildcard)
[0] Array index (0-based)
[-1] Last array element
[0,2] Multiple indices
[1:3] Slice (from:to, exclusive)
[*] All array elements
[?(@.x)] Filter — elements that have key x
[?(@.x>5)] Filter — x greater than 5
JMESPath
key Access a key
a.b Nested key access
a[0] Array index
a[*].b Project key b from all elements
a[?b>5] Filter — b greater than 5
a[?b=='x'] Filter — b equals string x
{x: a, y: b} Multi-select object
[a, b] Multi-select list
a | b Pipe — apply b to result of a
length(a) Built-in function