JQ-LITE(1)
π JQ-LITE(1) π
okay so bestie, welcome to the JQ-LITE(1) page β it lives in the User Contributed Perl Documentation section of the manual, and it's literally about to make your JSON-processing life so much cuter. π
β¨ NAME β¨
jq-lite β a minimal jq-style JSON filter, written in pure Perl πͺπ
πΈ SYNOPSIS πΈ
jq-lite [options] filter [file ...]
cat users.json | jq-lite '.users[].name'
jq-lite '.items | sort | first' data.json
jq-lite -R -s -c 'split("\n")' logfile.txt
like, that's it. that's the whole vibe. run it, pipe into it, feed it a file β she's flexible. π¦
π DESCRIPTION π
jq-lite is a lightweight, jq-compatible alternative JSON processor written in pure Perl. no cap.
She's made for those systems where jq justβ¦ isn't there π but Perl is β giving you that awk/sed-like convenience for processing JSON and YAML data. it's giving "she showed up and did the job" energy, fr fr.
Features include: π
- jq-style filters: dot traversal, pipes, basic selectors, and commonly used built-in functions β the essentials, slayed
- Command-line options such as
-R,-r,-c,-a,--color,--use,--debug,-e,--slurp,--null-input,-s,--from-file,--arg,--argfile,--argjson,--rawfile,--slurpfile,--help-functions,-h, and-v - Pure Perl implementation with no XS, no external binaries, and no runtime dependencies beyond core modules π§β¨ β she's self-sufficient, main character energy only
so here's the honest tea β: jq-lite aims to be compatible with jq where practical, but does not implement all jq features. she's not a drop-in replacement for jq β she's a pragmatic alternative for constrained or minimal environments. π«Ά
β οΈ heads up bestie: in particular, some advanced expressions and comparisons may behave differently from jq. don't come for her when your wildest filter doesn't match jq's output, ok? π
π OPTIONS π
-R,--raw-inputβ read input as raw text instead of JSON, running the filter once per line. oh, and if you pair it with-s, the entire input gets processed as a single string π-r,--raw-outputβ print raw strings instead of JSON-encoded values. no extra quotes, just vibes β¨-c,--compact-outputβ emit JSON on a single line with no pretty-printing whitespace. sleek, minimal, iconic π-a,--ascii-outputβ escape all non-ASCII characters in the JSON output. safety first π--colorβ colorize JSON output (keys, strings, numbers, booleans). yes she ate that ππ₯--useModule β force the JSON decoder module (for exampleJSON::PP,JSON::XS, orCpanel::JSON::XS). you pick, she obeys π--debugβ show which JSON module is being used. for when you gotta know π-e,--exit-statusβ set exit code to1when the final result is false, null, or empty. dramatic exit, honestly π--argname value β define a string variable--rawfilename file β read file as raw text and bind it to the variable--slurpfilename file β read file as JSON and bind it to the variable as an array of values--argjsonname value β define a JSON variable--argfilename file β read file as JSON and bind it to the variable-f,--from-filefile β read the jq filter from file instead of the command line (use"-"for STDIN) π-n,--null-inputβ usenullas input instead of reading JSON data-s,--slurpβ read the entire input stream as an array of JSON values. gather her up π«Ά--yamlβ parse input as YAML (auto-detected for.yml/.yamlfiles) πΈ-h,--helpβ display help and exit--help-functionsβ show the list of supported built-in functions. the cheat sheet, basically π-v,--versionβ display version information
π¦ SEE ALSO π¦
JQ::Lite, jq(1), awk(1), sed(1), perl(1) β the whole friend group π
π HOMEPAGE π
https://kawamurashingo.github.io/JQ-Lite/ β go say hi π
πΈ AUTHOR πΈ
Shingo Kawamura β the icon behind it all π
π COPYRIGHT AND LICENSE π
This software is released under the same terms as Perl itself. πͺπ
β DISCLAIMER β
jq-lite is provided "as is", without warranty of any kind. she's doing her best, ok ππ
okay that's the whole page bestie!! this cutie was brought to you by perl v5.42.2 and dated 2026-05-08 β go forth and filter some JSON, you've got this π β¨π«Ά
π¦ where this page comes from
- alpine 3.24: perl-jq-lite-doc 2.45-r0 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms