Changes for version 1.08 - 2025-10-18

  • Feature
    • Added jq-compatible `foreach expr as $var (init; update [; extract])` folding with optional emitters so streaming reductions mirror jq.
    • Added jq-compatible `--slurp` (`-s`) option to wrap every JSON document from the input stream in a single array before executing filters.
  • Tests
    • Added regression coverage ensuring foreach accumulates values and supports extract expressions referencing the iteration variable.
  • Docs
    • Documented foreach across README, module POD, and CLI helper listings.

Modules

A lightweight jq-like JSON query engine in Perl

Provides

in lib/JQ/Lite/Filters.pm
in lib/JQ/Lite/Parser.pm
in lib/JQ/Lite/Util.pm