]> Sergey Matveev's repositories - public-inbox.git/commit
lei: query: restore JSON output overview
authorEric Wong <e@80x24.org>
Sun, 10 Jan 2021 12:15:19 +0000 (12:15 +0000)
committerEric Wong <e@80x24.org>
Tue, 12 Jan 2021 03:51:43 +0000 (03:51 +0000)
commitb0898d18efbc8f646b736088f9600b87be88f91e
tree724cf4c2649eaf880087b2fbe2bf2b47ecde1675
parent3019046b3ab9736922762df111d60ef7647e36a3
lei: query: restore JSON output overview

This internal API is better suited for fork-friendliness (but
locking + dedupe still needs to be re-added).

Normal "json" is the default, though stream-friendly "concatjson"
and "jsonl" (AKA "ndjson" AKA "ldjson") all seem working
(though tests aren't working, yet).

For normal "json", the biggest downside is the necessity of a
trailing "null" element at the end of the array because of
parallel processes, since (AFAIK) regular JSON doesn't allow
trailing commas, unlike JavaScript.
MANIFEST
lib/PublicInbox/LeiOverview.pm [new file with mode: 0644]
lib/PublicInbox/LeiQuery.pm
lib/PublicInbox/LeiXSearch.pm