Skip to content

[Rust] Allow json writer to write out JSON arrays as well as newline formatted objects #27625

@asfimport

Description

@asfimport

Currently the arrow json writer makes JSON that looks like this (one record per line):

{"foo":1}
{"bar":1}

Whereas a JSON array looks like this

[
  {"foo":1},
  {"bar":1}
]

It would be nice to write out json in a streaming fashion (we added such a feature in IOx via https://github.com/influxdata/influxdb_iox/pull/870/files)

/// Writes out well formed JSON arays in a streaming fashion
///
/// [{"foo": "bar"}, {"foo": "baz"}]
///
/// This is based on the arrow JSON writer (json::writer::Writer)

Reporter: Andrew Lamb / @alamb
Assignee: Andrew Lamb / @alamb

PRs and other links:

Note: This issue was originally created as ARROW-11773. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions