Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Processes JSON on the command line to extract, filter, and transform data with jq.
Use this skill ↓92% 92%0 ptsof test cases passed
Passed 22 of 24 test cases with the skill, and 22 of 24 without it.
3 of 3 safety checks passed
Command-line JSON processor for extracting, filtering, and transforming JSON.
macOS / Linux (Homebrew):
brew install jq
All platforms: See jqlang.org/download for packages, binaries, and build instructions.
jq '[filter]' [file.json]
cat file.json | jq '[filter]'
.key # Get key
.a.b.c # Nested access
.[0] # First element
.[] # Iterate array
.[] | select(.x > 5) # Filter
{a: .x, b: .y} # Reshape
. + {new: "val"} # Add field
del(.key) # Remove field
length # Count
[.[] | .x] | add # Sum
keys # List keys
unique # Dedupe array
group_by(.x) # Group
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.