pub fn record_batch_to_json( batch: &RecordBatch, ) -> Result<Vec<Value>, Box<dyn Error>>
Convert an Arrow RecordBatch to a JSON array of objects