MrTechKing

4 min read

jq: Slice, Filter and Reshape JSON From the Command Line (GitHub, Scanned)

A free command-line JSON processor that pulls fields out of API responses and files, then filters and reshapes them.

jq logo
✅
Scan: safe. Nothing malicious. One thing to know: jq's regular expression engine, Oniguruma, was archived by its author in April 2025, and the maintainers are discussing a replacement. Scanned Nov 28, 2026; the full report is below.

jq is a free command-line program for reading and changing JSON, the text format most web APIs and config files use. Pipe JSON into it and jq . prints it indented and coloured; jq '.name' pulls out one field, jq '.[] | select(.price < 10)' keeps only the items you want, and jq -r prints plain text for your scripts. It is one small program with no runtime dependencies.

It earns its place because almost every API, cloud tool and log file speaks JSON, and jq turns it into exactly the piece you need, in a shell script or straight from the terminal. Its filter language is often called sed or awk for JSON: pipes, maps, conditions and functions, with a full manual at jqlang.org. You can also try filters in your browser at play.jqlang.org, the project's own playground, without installing anything.

jq is MIT-licensed and written in C; its manual is CC BY 3.0. Stephen Dolan created it in 2012, and since 2023 a volunteer team under the jqlang organisation on GitHub has maintained it. It has about 36,400 stars and around 270 contributors. Version 1.8.2 came out on 20 June 2026.

  • Repository: github.com/jqlang/jq
  • Licence: custom (Other)
  • Language: C. Stars: 36.4K. Forks: 2,255. Last push: Nov 2, 2026.
  • Scan: safe, Nov 28, 2026, commit 5c001b1

Who it is for

Developers, sysadmins, DevOps and data people, and anyone who pulls data from web APIs in scripts. It runs on macOS, Linux and Windows, and the browser playground needs no install at all.

Getting started

1. No install: try filters on your own JSON in the browser

https://play.jqlang.org

2. Install on macOS or Linux with Homebrew

brew install jq

3. Or on Windows, with winget

winget install jqlang.jq

4. Or on Ubuntu and Debian

sudo apt install jq

5. Pretty-print a JSON file

jq . data.json

6. Pull one field out of an API response (-r prints it without quotes)

curl -s https://api.github.com/repos/jqlang/jq | jq -r '.stargazers_count'

Package managers install the jq program and change nothing else. jq reads its input and prints the result; it never edits a file in place, so to keep a change you write the output to a new file. Linux distributions may ship an older version than 1.8.2 (jq --version shows yours) and often use the system's copy of Oniguruma for regular expressions. The playground is a separate jqlang project, and our scan covers jq's source code, not the playground or the prebuilt binaries.

Safety scan

We cloned jqlang/jq at commit 5c001b1 on Nov 28, 2026 and ran the checks described on the GitHub Tools page: credential patterns, decode-and-execute code, install-time scripts, committed binaries, risky CI workflows, every host the code talks to, known vulnerabilities in pinned dependencies, and project hygiene. A person read every hit. This is what we found.

  • 0 secret hits and no committed binaries across 434 files and about 52,000 lines: C for the program and YAML for the manual, the tutorial and the download page.
  • 0 pattern hits. The build uses the usual autotools files and no custom build scripts. vendor/decNumber holds IBM's decimal number library, built in for exact large numbers, and vendor/oniguruma is a git submodule pointing at a fixed commit of the Oniguruma regex library, which the scan did not clone.
  • No install script. Each release ships single prebuilt programs for macOS, Linux and Windows with a sha256sum.txt file and GitHub build provenance attestations, from a release job that runs in a protected environment; the same job publishes a Docker image on ghcr.io.
  • No lockfile for the program, since jq has no runtime dependencies to pin. The one lockfile, docs/Pipfile.lock, lists 15 Python packages for building the website: 0 advisories. Oniguruma's author archived it on 24 April 2025, so regex bug fixes now depend on jq's own maintainers, and issue #3313 discusses moving off it.
  • The program contacts no server; the hosts in the code are links in comments and the manual. 8 workflows, with no pull_request_target, including Clang's static analyzer and Valgrind memory checks; none of the 9 third-party actions is pinned to a commit. A security policy and Dependabot are present; no CodeQL and no OpenSSF Scorecard result.

What the scanner counted

CheckResult
SecretsNone found.
Suspicious codeNone found.
Install-time codeNone: nothing runs at install beyond the package manager itself.
Committed binariesNone.
CI workflows8 workflows. None use pull_request_target. 9 of 9 third-party actions pinned to a tag rather than a commit.
Network hosts9 distinct hosts referenced from source; most often github.com, en.wikipedia.org, jqlang.org, www.gnu.org. No URLs to bare IP addresses.
Known vulnerabilities0 advisories across 15 pinned packages: 0 critical, 0 high, 0 moderate, 0 low. docs/Pipfile.lock: 15 packages, 0 advisories.
Project hygieneHas security policy, automated dependency updates, licence file. Missing CodeQL, contributing guide.
OpenSSF ScorecardNot scored: the project is not in Scorecard's weekly index.

By the numbers

Stars36.4K
Forks2,255
Contributors272
Commits1,987
Open issues323
Open pull requests148
Releases16
Latest releasejq-1.8.2
Licencecustom
Main languageC
Project age14 years
Last pushNov 2, 2026
Tracked files434
Lines of code52.3K
Checkout size5 MB

Lines by language: C 25.1K, YAML 22.9K, C/C++ header 2,406, Markdown 917, Python 414, C++ 347.

Questions

Is jq free?

Yes. It is free and open source under the MIT licence, with no paid version and no account. The playground at play.jqlang.org is free too.

jq or Python for JSON?

jq for quick one-liners in the terminal and in shell scripts: one short filter instead of a small program. Python, or another language you know, once the logic grows past a few lines or needs tests.

Does jq work on Windows?

Yes. Install it with winget or download jq-windows-amd64.exe from the releases page, then run it in PowerShell or Windows Terminal. Quoting works a little differently there, so check the manual's examples for Windows.

Can I use jq without installing it?

Yes. play.jqlang.org, the project's own playground, runs filters on JSON you paste into your browser, which is a good way to learn the language.

How do I uninstall jq?

Run brew uninstall jq, winget uninstall jqlang.jq or sudo apt remove jq. jq keeps no settings, apart from an optional ~/.jq file of your own functions.


This post is part of GitHub Tools, where every repository is cloned and scanned before it is written up. The scan is a snapshot of one commit on one day; the repository has moved on since, so check it before you install.