One expression instead of a walk function.
Queries run through JSONPath Plus, with the built-in subset parser as the offline path. Results always come back as a list and are printed one per --- separator, so an empty pane genuinely means no matches.
| Expression | Selects |
|---|---|
$.store.book[*].author | every author in the book array |
$..price | every price, at any depth |
$.orders[?(@.total > 100)] | orders above a threshold |
$..items[?(@.sku.includes("A-"))] | items whose sku contains A- |
$.services[-1:] | the last service in the sample above the panel — as a slice, because a bare [-1] matches nothing here |
What the offline subset covers
Dot and bracket keys, indices including negative ones, wildcards, recursive descent, and single-condition filters using ==, =, !=, >, <, >=, <= and =~. The right-hand side of a filter is read as a number, boolean or null when it looks like one, otherwise as a string. Slices, script expressions and functions belong to the library path.
Only a thrown expression drops you onto that path, and the two engines disagree about what throws. =~ is rejected by the library and so is answered by the subset, which is why it works here; a bare [-1] is accepted by the library and returns nothing, so the subset never gets the chance to resolve it. When an answer looks worse than the expression, open the console and see which engine replied. The JSONPath cheat sheet lists every form that fails this way, with the replacement for each.
NOTE Recursive descent returns the value it finds without unpacking it: $..tags gives you the arrays, not their individual items.
What you get on this page
- ▸Powered by jsonpath-plus
- ▸Dot and bracket notation
- ▸Filters such as @.price > 10
- ▸Recursive descent with ..
Because bracekit is a static application, this page loads quickly, caches well and never sends your data to a parsing server. Your formatting preferences, recent documents and snippets stay in local storage.