Description
As best as I've been able to tell, the JSON module currently provided
by wren-essentials does not directly support the efficient entity-by-entity
reading of JSON texts in files with streams of JSON entities, unless
each such entity is on a separate line.
Consider for example a file with the four lines:
{
"a:" 1
}
2
This illustrates what is no doubt the main need, but it is worth
keeping in mind that streams of JSON entities can be presented without
any newlines at all, e.g.:
1 2 3
For reference, jq's input
built-in meets the requirements I have in mind.
A related but also quite distinct need is to be able to process very large JSON entities
in a "stream-oriesnted manner" (in the sense of streaming XML parsers).
Again, jq's --stream
option provides a convenient point of reference, especially
since jq allows this option to be used in conjunction with streams of JSON texts.
Activity