Extract every title
Illustrative example[*] matches every item in the books array; .title reads one property from each.
$.store.books[*].title[ "Testing Basics", "API Testing in Practice", "Automation Patterns"]Working with deeply nested JSON shouldn’t mean manually searching through hundreds of objects and arrays.
Captain JSON’s JSONPath Query tool helps you explore JSON structures, write JSONPath expressions, and extract exactly the data you need.
Whether you’re testing API responses, debugging payloads, or building automation scripts, find the required JSON values faster.
Part of the Captain JSON toolkit — 20+ JSON tools in one extension.
Example: extract every book title
Illustrative example$.store.books[*].title[ "Testing Basics", "API Testing in Practice", "Automation Patterns"]Your JSON toolkit. Wherever you develop.
Captain JSON brings essential JSON developer utilities into your everyday browser workflow. Explore JSONPath expressions, filter JSON using jq-style queries, and transform complex JSON structures into readable tables. Install Captain JSON on your preferred supported browser and make JSON exploration easier.
Available today: Google Chrome, Microsoft Edge and Mozilla Firefox. More browsers are coming soon.
JSONPath is a query language for JSON. A JSONPath expression such as $.store.books[*].title walks a JSON document and returns the values it matches — much as XPath does for XML. Captain JSON’s JSONPath Query tool lets you run expressions, explore your JSON as an interactive tree and click any node to generate its JSONPath.
About Captain JSON: Captain JSON is a browser extension by PiratesOfBugs that provides JSON developer utilities including JSON comparison, formatting, pretty printing and validation.
Run expressions, explore the structure and generate paths — all in your browser.
Run an expression against your JSON and see what it matches.
Browse objects and arrays as an expandable tree.
Select a node in the tree and get the expression that points to it.
Run queries automatically instead of triggering each one by hand.
See the values your expression matches.
Read extracted results in a clear, structured output.
Find a node in a large document by its key or its value.
Open or fold the whole tree in one action.
Revisit earlier queries and start from ready-made examples.
Copy the extracted data or download it.
Modern APIs frequently return deeply nested JSON structures containing objects, arrays, and multiple levels of data.
Finding a specific property manually becomes difficult when working with large API responses.
JSONPath provides a query language for navigating JSON structures and extracting specific values.
Captain JSON makes this process easier through an interactive JSONPath editor and tree explorer.
Extract specific values from REST API responses.
Retrieve nested properties without manually navigating JSON.
Extract dynamic values for automated test execution.
Understand expressions through interactive JSON exploration.
Investigate complex API payloads and nested objects.
These illustrative examples run four common expressions against one document. They are examples, not screenshots of the extension.
{ "store": { "name": "Bug Bounty Books", "books": [ { "title": "Testing Basics", "author": "A. Rivera", "price": 8.99, "inStock": true }, { "title": "API Testing in Practice", "author": "M. Chen", "price": 24.5, "inStock": true }, { "title": "Automation Patterns", "author": "S. Okafor", "price": 31, "inStock": false } ] }}[*] matches every item in the books array; .title reads one property from each.
$.store.books[*].title[ "Testing Basics", "API Testing in Practice", "Automation Patterns"]A filter expression keeps only the books priced under 25.
$.store.books[?(@.price < 25)].title[ "Testing Basics", "API Testing in Practice"]Recursive descent (..) finds every price, wherever it sits in the document.
$..price[ 8.99, 24.5, 31]An array index selects a single book. The matches are still returned as a list.
$.store.books[0].author[ "A. Rivera"]From exploring nested JSON to filtering complex data and converting structures into readable tables, Captain JSON brings essential JSON utilities together in one browser extension.
We use analytics cookies to understand how the site is used. No personal data is sold. See our privacy practices before choosing.