Clone this repo:
  1. 949d38e Fix crash on numeric comparison (ref #2804) (#2818) by itchyny · 9 months ago main
  2. 53a62cf Improve README to be more structural and more readable (#2814) by Owen Ou · 9 months ago
  3. ff4bf68 Enable stack protection (CI release executables) by Nicolas Williams · 10 months ago
  4. fd0d475 Fix a test case added in #2790 by itchyny · 9 months ago
  5. 680baef Fix rounding small (but not too small) numbers to zero on calculation by itchyny · 10 months ago

jq

jq is a lightweight and flexible command-line JSON processor akin tosed,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

Installation

Prebuilt Binaries

Download the latest releases from the GitHub release page.

Docker Image

Pull the jq image to start quickly with Docker.

Building from source

Dependencies

  • libtool
  • make
  • automake
  • autoconf

Instructions

git submodule update --init # if building from git to get oniguruma
autoreconf -i               # if building from git
./configure --with-oniguruma=builtin
make -j8
make check
sudo make install

Build a statically linked version:

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-compliation, check out the GitHub Actions file and the cross-compliation wiki page.

Community & Support

License

jq is released under the MIT License.