{ } jq-lite
Menu
About

JSON queries.
Pure Perl simplicity.

jq-like queries for shell scripts and Perl applications. No compilation, with documented contracts for long-term stability.

Perl ≥ 5.14No XSNo native libraries
● ● ● jq-lite / shell
# JSON in. Useful answers out.
$ cat services.json
{
  "services": [
    {"name": "api", "status": "ready"},
    {"name": "worker", "status": "ready"}
  ]
}

$ jq-lite '.services[].name' services.json
"api"
"worker"
A small tool for familiar pipelines.
01 / PORTABILITY

No compilation

Pure Perl without external binaries or native libraries. Bring JSON processing to environments where Perl is available.

02 / STABILITY

Compatibility for operations

Exit codes, errors and stdout behavior are documented in a test-backed CLI contract, with long-term stability in mind.

03 / INTEGRATION

Use it from Perl

Use the documented JQ::Lite API in applications and other CPAN distributions, beyond the command line.

Install jq-lite

Choose a method and copy the command. The full guide covers offline, Windows and user-local installation.

Installation guide
Terminal
cpanm JQ::Lite

jq-lite -v

Requires Perl 5.14 or later

Usage examples

INPUT / JSON
{
  "users": [
    {"name": "Alice"},
    {"name": "Bob"}
  ]
}
QUERY / CLI
jq-lite '.users[].name' users.json
OUTPUT
"Alice"
"Bob"

Static examples; Perl does not run in your browser.

Documentation

All documentation