Skip to content

Streaming rows as comma-separated JSON that form and array #106

@jeromegn

Description

@jeromegn

Not all languages / frameworks / libraries have an easy time dealing with NDJSON out of the box, even if they have streaming capabilities.

It might be interesting to explore and alternate format: streaming as a normal JSON array.

How? First we send the [ character, then we send each row as an independent JSON object (well, an array? could be configurable to set the column names properly), send a comma in between, send a ] at the end.

This way we don't have to hold onto all the rows in-memory but can still stream a normal JSON array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions