Extract a single property
Illustrative exampleField selection walks down to one value.
.user.name"Ada Lovelace"Large JSON documents often contain more information than you actually need.
Captain JSON’s jq Query tool helps you filter, transform, and reshape JSON using familiar jq-style expressions.
Explore data, extract relevant values, and simplify complex JSON structures with a live query preview.
Part of the Captain JSON toolkit — 20+ JSON tools in one extension.
Example: list every item name
Illustrative example.items | map(.name)[ "Keyboard", "Monitor", "Mouse"]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.
jq is a lightweight command-line JSON processor: you give it a filter and it selects, filters and transforms JSON. Captain JSON’s jq Query tool brings jq-style expressions into your browser, with a lightweight interpreter for common jq operations and a live output panel. It is not a full jq installation, so it covers common operations rather than the whole jq language.
About Captain JSON: Captain JSON is a browser extension by PiratesOfBugs that provides JSON developer utilities including JSON comparison, formatting, pretty printing and validation.
Filter and reshape JSON with jq-style expressions, and see the result as you work.
Run jq-style expressions against your JSON.
Inspect the transformed JSON in a live output panel.
Start from ready-made expressions and adapt them.
Return to expressions you ran earlier.
Copy the result or download it.
Covers field selection, array indexing, filtering, mapping, sorting, grouping and length — not every jq feature.
Working with large API responses can make data analysis and debugging unnecessarily complicated.
You may need only a few fields from a large JSON object, or you may need to filter an array based on specific conditions.
jq-style expressions make these operations easier.
Captain JSON provides an interactive query environment where you can execute expressions and inspect transformed JSON through a live output panel.
Filter objects and arrays using conditions.
Reshape JSON into the structure you need.
Extract only relevant API response fields.
Prepare JSON data for automation and testing.
Quickly understand complex JSON structures.
These illustrative examples use operations Captain JSON documents for its lightweight interpreter — field selection, filtering, mapping and sorting. They are examples, not screenshots of the extension.
{ "user": { "name": "Ada Lovelace", "email": "[email protected]" }, "items": [ { "name": "Keyboard", "price": 49.9, "inStock": true }, { "name": "Monitor", "price": 189, "inStock": false }, { "name": "Mouse", "price": 19.5, "inStock": true } ]}Field selection walks down to one value.
.user.name"Ada Lovelace"Keep only the items that cost more than 20.
.items | map(select(.price > 20))[ { "name": "Keyboard", "price": 49.9, "inStock": true }, { "name": "Monitor", "price": 189, "inStock": false }]Map over the array and keep just the name of each item.
.items | map(.name)[ "Keyboard", "Monitor", "Mouse"]Sort by price, then keep only the names: a short, ordered list instead of full objects.
.items | sort_by(.price) | map(.name)[ "Mouse", "Keyboard", "Monitor"]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.