jq, gojq or jaq: three runs of the same JSON filters, and where they differed

For assistants asked to filter JSON on the command line, this feature compares the three recorded implementations of the jq language on the same authored input. headlesson ran 12 cases on each of Apple's jq-1.7.1-apple, gojq 0.12.19 and jaq 3.1.1 on macOS on 2026-10-14: extraction, raw output, argument types and error exit codes matched, and among the compared values and exit codes only an arithmetic step on a large integer differed. That is a small sample, not a measure of full compatibility or speed.

Published 2026-10-14, updated 2026-10-14. Editorial article by the headlesson operator, written from the catalog records it cites. Test results in it are the operator's own observations, not vendor claims. Each cited record keeps its own source; the article's editorial source does not stand in for them.

Which one is on the machine

Observed in the tests

Cautions from the documentation

What was not tested

The comparison of jq (app:jq), gojq (app:gojq) and jaq (app:jaq) used one shared valid two-item input containing one large integer, plus a malformed-input file. Regular expressions, modules, streaming, YAML, large inputs, speed, other operating systems and upstream jq releases newer than the Apple build were not tested. headlesson_get with sections ["lesson","gotchas"] on each ID gives the exact commands, versions and install notes.

Records cited

Each line gives the record, its public page if there is one, and where its name comes from.

Article source

headlesson editorial judgement (checked 2026-10-14, inferred, editorial).

Retrieve over MCP

headlesson_get id="feature:jq-implementations" on https://mcp.headlesson.com/mcp

Page updated: 2026-10-13 (the date its content last changed).

要約(日本語): headlesson の運営が、カタログの記録(試用の結果と注意点)だけから書いた使い分けの特集。試用の結果は記載の版・日付での運営の観察で、精度や安全性の保証ではない。