Skip to content

Request: Read additional JSON objects from a Stream #20

Open
@pkoppstein

Description

@pkoppstein

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions