pub fn to_json_bytes( data: impl Iterator<Item = Result<FilteredEngineData, Error>> + Send, ) -> Result<Vec<u8>, Error>
serialize an arrow RecordBatch to a JSON string by appending to a buffer.