Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
J

jq

> 编程语言
Open source

Command-line JSON processor

35.3K stars0 likes3 views
WebsiteGitHub

About

Command-line JSON processor

jq

jq is a lightweight and flexible command-line JSON processor akin to sed,awk,grep, and friends for JSON data. It's written in portable C and has zero runtime dependencies, allowing you to easily slice, filter, map, and transform structured data.

Documentation

  • Official Documentation: jqlang.org
  • Try jq Online: play.jqlang.org

Installation

Prebuilt Binaries

Download the latest releases from the GitHub release page.

Docker Image

Pull the jq image to start quickly with Docker.

Run with Docker

Example: Extracting the version from a package.json file
bash
docker run --rm -i ghcr.io/jqlang/jq:latest < package.json '.version'
Example: Extracting the version from a package.json file with a mounted volume
bash
docker run --rm -i -v "$PWD:$PWD" -w "$PWD" ghcr.io/jqlang/jq:latest '.version' package.json

Building from source

Dependencies

  • libtool
  • make
  • automake
  • autoconf

Instructions

bash
git submodule update --init    # if building from git to get oniguruma
autoreconf -i                  # if building from git
./configure --with-oniguruma=builtin
make clean                     # if upgrading from a version previously built from source
make -j8
make check
sudo make install

Build a statically linked version:

bash
make LDFLAGS=-all-static

If you're not using the latest git version but instead building a released tarball (available on the release page), skip the autoreconf step, and flex or bison won't be needed.

Cross-Compilation

For details on cross-compilation, check out the GitHub Actions file and the cross-compilation wiki page.

Community & Support

  • Questions & Help: Stack Overflow (jq tag)
  • Chat & Community: Join us on Discord
  • Wiki & Advanced Topics: Explore the Wiki

License

jq is released under the MIT License. jq's documentation is licensed under the Creative Commons CC BY 3.0. jq uses parts of the open source C library "decNumber", which is distributed under ICU License

Issues· 426 open

View all issuesOpen on GitHub
  • #3112

    tonumber doesn't work on `true` or `false`

    feature requestUpdated Sep 30, 2026
  • #3443

    Add a higher-order "flip" function to allow swapping function input/arguments

    Updated Sep 28, 2026
  • #3313

    Migrate away from oniguruma?

    Updated Sep 28, 2026
  • #3642

    gmtime/localtime/strftime abort (UBSan / float-cast-overflow) on out-of-range or non-finite input

    Updated Sep 27, 2026
  • #3479

    Document `fromstream` best practices

    Updated Sep 21, 2026
  • #3538

    Inconsistent delpaths behavior with negative indices

    bugUpdated Sep 18, 2026
  • #3145

    modulemeta failure when module location is found by "search"

    Updated Sep 11, 2026
  • #3231

    Feature request: please describe the select function in the tutorlal

    docsUpdated Sep 10, 2026
  • #2425

    Opportunity: operator precedence table

    docswikiUpdated Aug 21, 2026
  • #2224

    `fromdateiso8601` doesn't support the "decimal fraction" component in time values.

    bugdatetimeUpdated Aug 14, 2026

> Tags

Cjq

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言