macOS
brew install gojqlocal Homebrew formula metadata
sudo port install gojqMacPorts ports tree · textproc/gojq/Portfile · source: api.github.com
brew
Pure Go implementation of jq. Version 0.12.19 via Homebrew; verified from local package data.
install
brew install gojqlocal Homebrew formula metadata
sudo port install gojqMacPorts ports tree · textproc/gojq/Portfile · source: api.github.com
sudo apk add gojqAlpine Linux edge package indexes · gojq · source: dl-cdn.alpinelinux.org
sudo apt install gojqDebian stable package indexes · gojq · source: deb.debian.org
sudo dnf install gojqFedora Rawhide package metadata · gojq · source: dl.fedoraproject.org
nix profile install nixpkgs#gojqnixpkgs package indexes · pkgs/by-name/go/gojq/package.nix · source: api.github.com
sudo zypper install gojqopenSUSE Tumbleweed package metadata · gojq · source: download.opensuse.org
overview
Pure Go implementation of jq
history
gojq is a pure Go implementation of jq, the JSON query language and command-line processor. It can run as a command and can also be embedded as a Go library.
The project is valuable where jq compatibility is wanted without C-library and regex-library build dependencies, or where Go programs want an in-process jq-like query engine.
The repository began in April 2019 with commits implementing the parser, runner, and CLI. The README frames the project as a jq implementation written in Go and documents both command usage and library APIs.
The release stream moved quickly through 0.x versions in 2019 and 2020, with v0.12.0 appearing in December 2020. Subsequent v0.12 patch releases continued the long maintenance line.
gojq's package-manager adoption follows its portability story. The input package facts list apk, Homebrew, Debian, dnf, MacPorts, Nix, Ubuntu, and zypper packages, which fits a small CLI used across many Unix-like systems.
The README advertises installation through Homebrew, mise, Zero Install, go install, and Docker images. That broad install surface reflects both command-line use and reproducible automation contexts.
At the command line, gojq reads JSON and applies jq filters such as .foo, .a.b, object construction, updates, and pipelines. The README highlights useful differences including arbitrary-precision integer calculations, YAML input/output options, and detailed error positions.
As a library, callers parse a query with gojq.Parse, run it against values decoded into []any or map[string]any, and iterate over results. Compile options cover module loading, environment loading, variables, custom functions, and input iterators.
gojq is significant because it ports one of the most package-manager-loved Unix data tools into a single Go build. That makes static or cross-platform distribution easier than the C jq stack in many environments.
It also exposes the tension in compatibility implementations: the README documents intentional differences from jq, including map ordering, unsupported flags, regex-engine differences, YAML support, and arbitrary-precision integers.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
gojq | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/itchyny/gojq
install metadata
| Package key | brew:gojq |
|---|---|
| Version | 0.12.19 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/gojq |
| Homepage | https://github.com/itchyny/gojq |
| Repository | https://github.com/itchyny/gojq |
| Upstream docs | https://github.com/itchyny/gojq#readme |
| License | MIT |
| Source archive | https://github.com/itchyny/gojq.git |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gojq |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
gojq 0.12.13-1
pure Go implementation of jq (program)
https://github.com/itchyny/gojq
sudo apt install gojqgolang-github-itchyny-gojq-dev 0.12.13-1
pure Go implementation of jq (library)
https://github.com/itchyny/gojq
sudo apt install golang-github-itchyny-gojq-devgojq
nix profile install nixpkgs#gojqgojq 0.12.13-1
pure Go implementation of jq (program)
https://github.com/itchyny/gojq
sudo apt install gojqgolang-github-itchyny-gojq-dev 0.12.13-1
pure Go implementation of jq (library)
https://github.com/itchyny/gojq
sudo apt install golang-github-itchyny-gojq-devgojq 0.12.19-r2
Pure Go implementation of jq
https://github.com/itchyny/gojq
sudo apk add gojqgojq-zsh-completion 0.12.19-r2
Zsh completions for gojq
https://github.com/itchyny/gojq
sudo apk add gojq-zsh-completiongojq 0.12.19-2.fc45
Pure Go implementation of jq
https://github.com/itchyny/gojq
sudo dnf install gojqgojq 0.12.19-1.2
Pure Go implementation of jq
https://github.com/itchyny/gojq
sudo zypper install gojqgojq
sudo port install gojqsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.