jaq is a correct, fast, and simple clone of the JSON processing tool jq. Compared to the original, this implementation is drop-in compatible, is faster in most cases, and supports more data formats.
A network connection is needed for building this package. The system certificate store may need to be set up with make-ca before building this package.
cURL (to download documentation)
If you wish to install the documentation, download it [4] using cURL:
curl -fsSL -OO https://github.com/01mf02/jaq/releases/download/v3.1.0/{jaq.1,MANUAL.xhtml}
Install jaq by running the following commands:
cargo build --release
To test the results, issue: cargo test --release.
Now, as the root user:
install -vDm755 target/release/jaq -t /usr/bin/ && ln -sfv jaq /usr/bin/jq
If you downloaded the documentation, install it as the root user:
install -vDm644 README.md MANUAL.xhtml -t /usr/share/doc/jaq-3.1.0/ && install -vDm644 jaq.1 -t /usr/share/man/man1/ && ln -sfv jaq.1 /usr/share/man/man1/jq.1
[4] The documentation for this package is written in the djot markup language. Among the LFS packages, no suitable tooling exists to convert djot into either the troff format used by man pages or XHTML. At time of writing, upstream uses jotdown for this task. Previously, the much heavier pandoc was used.