JSONPath extractor for LLM output
LLM API responses wrap the part you actually want in layers of envelope:
choices, message, content, and so on. Clicking through that by hand is
tedious. This tool lets you write a JSONPath expression and pull out exactly
the values you need, with full wildcard support for flattening arrays — entirely
in your browser.
How it works
Paste your JSON and a path expression. The tool parses the JSON, then walks your
path segment by segment from the $ root. Property names use dot or bracket
notation, array elements use numeric indexes, and a [*] wildcard fans out to
every element of an array or every value of an object, so a single path can
return many matches. Each match is listed with its resolved value; parse errors
and empty result sets are reported distinctly so you know which one you hit.
Tips and notes
- Start broad, then narrow. Try
$to confirm the JSON parsed, then add segments until you isolate the value you want. - Wildcards flatten structured output.
$.results[*].labelturns a list of objects into a clean list of labels you can copy straight out. - Mind array bounds. An index past the end of an array yields no match rather than an error, so an empty result often means the index is too high.
- Combine with the schema inferrer. Infer the shape of a response first, then write paths against the keys it reveals.