gojq vs gron
gojq
github.comgron
github.comSide by side
| Figure | gojq | gron |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| Self-hosted | Yes | — |
| Plans published | 1 | 1 |
| Spec score · JSON Tools | 8.5 (#5) | 8.0 (#11) |
| License | The project is released under the MIT License. | The repository lists the MIT license. |
| Purpose | gojq is a pure Go implementation of the jq command-line JSON processor and can also be embedded as a library in Go products. | gron transforms JSON into discrete assignments so users can grep for values and see their paths. |
Plans
In their own words
gojq
gojq is a free, MIT-licensed Go implementation of the jq command, with a library for embedding queries in Go products. The command-line tool applies jq-style queries to JSON, including filtering, field selection, updates, and multiple input values. It reads YAML and can produce YAML output. Integer arithmetic uses arbitrary precision for addition, subtraction, multiplication, modulo, and divisible division. The project describes gojq as portable and supports Linux, macOS, Windows, and self-hosted use. Documented installation routes include Homebrew, mise, Zero Install, source builds, and Docker images. Go applications can parse and run queries, compile them for reuse, and configure custom functions and iterators. Environment-variable access and module loading are disabled by default for library queries and require configured loaders. gojq does not preserve object key order and lacks some jq extensions, flags, functions, and regular-expression behavior.
gron
gron is a free, open-source command-line utility that turns JSON into separate assignments with visible paths. This representation helps users grep values in large or deeply nested JSON, including responses from poorly documented APIs. Input can come from a file, URL, or standard input. The --ungron option converts assignments back into JSON, while --json emits a JSON stream. Other options provide value-only output, colored or monochrome display, line-by-line streaming, insecure certificate handling, and sorting control. The output is valid JavaScript, and the project demonstrates comparing JSON files by diffing their gron output. If array entries are missing, ungron inserts null values to preserve keys. gron has no runtime dependencies. Installation instructions cover binary downloads, Homebrew, and Go install. It runs on Linux, macOS, and Windows; plan information also lists FreeBSD binaries. The repository uses the MIT license.