You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Andrew Lamb (Jira)" <ji...@apache.org> on 2021/02/24 22:31:00 UTC

[jira] [Created] (ARROW-11773) [Rust] Allow json writer to write out JSON arrays as well as newline formatted objects

Andrew Lamb created ARROW-11773:
-----------------------------------

             Summary: [Rust] Allow json writer to write out JSON arrays as well as newline formatted objects
                 Key: ARROW-11773
                 URL: https://issues.apache.org/jira/browse/ARROW-11773
             Project: Apache Arrow
          Issue Type: Improvement
          Components: Rust
            Reporter: Andrew Lamb



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)




--
This message was sent by Atlassian Jira
(v8.3.4#803005)