Highlights
Pure Perl
No compiler. No native libraries.
jq-compatible
Readable filters for scripts.
CLI & library
Use it everywhere.
Installation
From CPAN
cpanm JQ::Lite
Alpine Linux
apk add jq-lite
Manual install (CPAN tarball)
ver=$(curl -s http://fastapi.metacpan.org/v1/release/JQ-Lite \
| perl -MJSON::PP -0777 -ne 'print decode_json($_)->{version}')
curl -sSfL http://cpan.metacpan.org/authors/id/S/SH/SHINGO/JQ-Lite-$ver.tar.gz -o JQ-Lite-$ver.tar.gz
tar xzf JQ-Lite-$ver.tar.gz
export PATH="$PWD/JQ-Lite-$ver/bin:$PATH"
Usage
jq-lite '.users[].name' users.json
Use cases
Locked-down servers
No package installs allowed.
CI/CD pipelines
Minimal dependencies.
Legacy & offline
Old systems, air-gapped networks.