jq
Hacker ApprovedRanked 2 of 86 privilege escalation tools by recommenders
Command-line tool for filtering and reshaping JSON, used in shell pipelines and API work. Critics find its operator syntax cryptic and hard to remember.
Command-line tool for filtering and reshaping JSON, used in shell pipelines and API work. Critics find its operator syntax cryptic and hard to remember.
108 people gave an opinion
- recommend it
- 75
- criticize it
- 33
- approval share
- 69%
Recommended in 12 of 13 months
- November 2025: recommended
- December 2025: recommended
- January 2026: recommended
- February 2026: recommended
- March 2026: recommended
- April 2026: recommended
- May 2026: recommended
- June 2026: recommended
- July 2026: recommended
- August 2026: recommended
- September 2026: recommended
- October 2026: recommended
- November 2026: not recommended (month in progress)
Why it carries the badge
- 75 people recommend itNeeds 10 or more, met.
- 2.3 recommenders for every criticNeeds 2 to 1 or better, met.
- Recommended in 12 of 13 monthsNeeds 4 or more, met.
The same three rules apply to every product, and the badge can’t be bought. How the badge works
What people say about it
The reasons people give, with the number of comments that give each one. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Handy one-liner in shell scripts
“jq is supposed to fit in to other bash scripts as a one liner. That's it's super power.”
Comment from 27 Mar 2026 in “A Faster Alternative to Jq” “jq and regex really are sort of handy one liners that you invoke in other scripts”
Comment from 3 Aug 2026 in “The true power of regular expressions (2012)” “piping through jq, chaining commands, redirecting to files... that's stuff I do daily”
Comment from 2 Mar 2026 in “MCP is dead. Long live the CLI” - Comment from 12 Jul 2026 in “Amber the programming language compiled to Bash/Ksh/Zsh”
Handles large JSON files quickly
“JQ is very convenient, even if your files are more than 100GB.”
Comment from 27 Mar 2026 in “A Faster Alternative to Jq” “I don't think I remember one case where jq wasn't fast enough”
Comment from 27 Mar 2026 in “A Faster Alternative to Jq” “what vastly improved the usefulness when working with big json responses”
Comment from 13 Dec 2025 in “Ask HN: How can I get better at using AI for programming?” Simple, intuitive syntax
“I find jq’s syntax and semantics to be simple and intuitive.”
Comment from 27 Mar 2026 in “A Faster Alternative to Jq” “I love jq, though. It provides an extremely good language for its task”
Comment from 10 Jul 2026 in “Good Tools Are Invisible” “The first 500 words explain more or less the entire language and how it works.”
Comment from 27 Mar 2026 in “A Faster Alternative to Jq” Works well with curl for APIs
“providing a few curl + jq oneliners to interact with a REST API works great in my experience”
Comment from 10 Apr 2026 in “I Still Prefer MCP over Skills” “Given curl, jq, and awk, you can create a quick MVP client for almost any api”
Comment from 6 Dec 2025 in “Perl's decline was cultural” “It would seem that curl + jq represents most of the solution these days.”
Comment from 21 Sep 2026 in “MCP was always a bad idea?”
What people warn about
Each mark is one comment
Cryptic, hard-to-remember syntax
“even LLMs often can't get the jq filter syntax right, or when they do, it looks terrifyingly cryptic and confusing”
Comment from 11 Apr 2026 in “Clojure on Fennel Part One: Persistent Data Structures” “It's a nuclear weapon but it's almost a programming language and I never can keep the operators in mind”
Comment from 10 Jul 2026 in “Good Tools Are Invisible” “Why most people strangulate themselves with confusing jq operators unnecessarily”
Comment from 27 Mar 2026 in “A Faster Alternative to Jq” - Comment from 12 Jul 2026 in “Good Tools Are Invisible”
- Comment from 27 Mar 2026 in “A Faster Alternative to Jq”
Trial and error to learn
“the pipelining has some implicit contextual stuff going on that I have to arrive at by trial and error each time”
Comment from 27 Mar 2026 in “A Faster Alternative to Jq” “I feel like I'm still a beginner because I don't get where I want to go on the first several attempts”
Comment from 27 Mar 2026 in “A Faster Alternative to Jq” “it did take me a while to come to terms with the syntax of assigning variables”
Comment from 28 Mar 2026 in “A Faster Alternative to Jq” Slow on very large data
“The problem is jq would need to JSON parse all that data which will be expensive.”
Comment from 19 Mar 2026 in “RX – a new random-access JSON alternative” “using yq / jq to performn a query was much (order of magnitudes) slower (>10m)”
Comment from 19 Jan 2026 in “Command-line Tools can be 235x Faster than your Hadoop Cluster (2014)” Tangled pipelines hard to maintain
“I know jq can do wonderful things, but I'd seriously question anyone's competency if you're building a production code base that relies on a tangled mess of jq piping commands”
Comment from 2 Mar 2026 in “MCP is dead. Long live the CLI” “even jq gets hairy when you have to do a bigger query or transformation”
Comment from 8 Sep 2026 in “Simple Is Not Small”
Other privilege escalation tools people recommend
The four most recommended other privilege escalation tools, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.
| Product | Recommend | Criticize | Approval | Months | Owned | Badge |
|---|---|---|---|---|---|---|
| fzf | 78 | 5 | 94% | 12 | — | Approved |
| jqThis page | 75 | 33 | 69% | 12 | — | Approved |
| grep | 65 | 19 | 77% | 12 | — | Approved |
| Atuin | 63 | 24 | 72% | 11 | 2 yrs4 owners | Approved |
| GitHub CLI | 49 | 45 | 52% | 12 | — | — |
What people said
40 of the 116 comments that mention it, newest first. Each links to the original comment.
“Wrap the whole thing in a function and you can instantly test if a number is even from the terminal.”
“5-6 tokens telling it to use `jq` in AGENTS.md was the right call for us”
“I've caught Claude writing python scripts to parse JSON instead of simply using jq”
“Reaching for an existing tool like `jq` means burning a LOT fewer tokens.”
“jq is an awesome tool and bothers me deeply having claude generating some big fat python script for a single line jq command.”
“It would seem that curl + jq represents most of the solution these days.”
“even jq gets hairy when you have to do a bigger query or transformation”
“jq and regex really are sort of handy one liners that you invoke in other scripts”
“For small stuff I use bash / sed / awk / jq / yq / curl etc.”
“I never can keep the operators in mind (even though I loved the idea at first)”
“I love jq, though. It provides an extremely good language for its task”
“It's a nuclear weapon but it's almost a programming language and I never can keep the operators in mind”
“They're all "mostly compatible" but at this point there should probably be a formal spec / grammar”
“If you've ever met jq, you don't need anyone to tell you that `--json` is a very valuable thing to have.”
“I did this by hand with tmux and jq before deciding it wasn't going to be a good solution.”
“Thanks to jq-lang and the jq-wrapper tomlq it can even work around the lints/workspace.lints difference with little problems.”
“even LLMs often can't get the jq filter syntax right, or when they do, it looks terrifyingly cryptic and confusing”
“providing a few curl + jq oneliners to interact with a REST API works great in my experience”
“I find this much easier to write and understand than git's cryptic format strings”
“it did take me a while to come to terms with the syntax of assigning variables”
“Why most people strangulate themselves with confusing jq operators unnecessarily”
“even trivial tasks require us to go back to jq's manual to learn how to write their language”
“I feel like I'm still a beginner because I don't get where I want to go on the first several attempts”
“the pipelining has some implicit contextual stuff going on that I have to arrive at by trial and error each time”
“Great tool, but IMO it is more intuitive to JSON people that want a CLI tool than CLI people that want a JSON tool.”
“I find jq’s syntax and semantics to be simple and intuitive.”
“I don't think I remember one case where jq wasn't fast enough”
“JQ is very convenient, even if your files are more than 100GB.”
“The first 500 words explain more or less the entire language and how it works.”
“jq is supposed to fit in to other bash scripts as a one liner. That's it's super power.”
“backtracking implementation in jq is really the secret sauce for how it handles those complex filters”
“The problem is jq would need to JSON parse all that data which will be expensive.”
“I know jq can do wonderful things, but I'd seriously question anyone's competency if you're building a production code base that relies on a tangled mess of jq piping commands”
“piping through jq, chaining commands, redirecting to files... that's stuff I do daily”
“using yq / jq to performn a query was much (order of magnitudes) slower (>10m)”
“you could learn awk or jq, which are arguably more generally- and widely-applicable than nushell”
“the ability to search back through history is a valuable simple (rip)grep/jq combo over the session directory”
“jq language makes sense for hierarchical data structures but how much useful is it for table formats”
“what vastly improved the usefulness when working with big json responses”
“Given curl, jq, and awk, you can create a quick MVP client for almost any api”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.