alamb commented on code in PR #5364:
URL: https://github.com/apache/arrow-rs/pull/5364#discussion_r1478008839


##########
arrow-json/src/writer.rs:
##########
@@ -74,7 +74,39 @@
 //! [`LineDelimitedWriter`] and [`ArrayWriter`] will omit writing keys with 
null values.
 //! In order to explicitly write null values for keys, configure a custom 
[`Writer`] by
 //! using a [`WriterBuilder`] to construct a [`Writer`].
-
+//!
+//! ## Writing to [serde_json] JSON Objects
+//!
+//! To serialize [`RecordBatch`]es into an array of
+//! [JSON](https://docs.serde.rs/serde_json/) objects you can reparse the 
resulting JSON string.
+//! Note that this is less efficient than using the `Writer` API.
+//!
+//! ```
+//! # use std::sync::Arc;
+//! # use arrow_array::{Int32Array, RecordBatch};

Review Comment:
   FWIW I did put this example at the end of the docs, so hopefully it is 
minimally confusing



-- 
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]

Reply via email to