armanm opened a new issue, #3418:
URL: https://github.com/apache/arrow-rs/issues/3418
**Which part is this question about**
generating json using `json::ArrayWriter`
**Describe your question**
is there a way to pretty write JSON data?
i.e.
instead of
```json
[{"foo": "bar", "baz": "zee"}]
```
render
```json
[
{
"foo": "bar",
"baz": "zee"
}
]
```
**Additional context**
This is currently how I'm doing it:
```rust
let mut writer = json::ArrayWriter::new(Vec::new());
writer.write_batches(&batches)?;
writer.finish()?;
return Ok(String::from_utf8(writer.into_inner())?);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]