pub fn write_row(&mut self, row: &Value) -> Result<()> {
        let is_first_row = !self.started;
        if !self.started {
            self.format.start_stream(&mut self.writer)?;
            self.started = true;
        }

        self.format.start_row(&mut self.writer, is_first_row)?;
        self.writer.write_all(&serde_json::to_vec(row)?)?;
        self.format.end_row(&mut self.writer)?;
        Ok(())
    }
/// Write a single JSON row to the output writer
Write a single JSON row to the output writer
Write a single JSON row to the output writer
pub fn write_row(&mut self, row: &Value) -> Result<()> {
        let is_first_row = !self.started;
        if !self.started {
            self.format.start_stream(&mut self.writer)?;
            self.started = true;
        }
        self.format.start_row(&mut self.writer, is_first_row)?;
        self.writer.write_all(&serde_json::to_vec(row)?)?;
        self.format.end_row(&mut self.writer)?;
        Ok(())
    }
pub fn write_row ( & mut self , row : & Value ) -> Result < ( ) > { let is_first_row = ! self . started ; if ! self . started { self . format . start_stream ( & mut self . writer ) ? ; self . started = true ; } self . format . start_row ( & mut self . writer , is_first_row ) ? ; self . writer . write_all ( & serde_json :: to_vec ( row ) ? ) ? ; self . format . end_row ( & mut self . writer ) ? ; Ok ( ( ) ) }
Write a single JSON row to the output writer
Write a single JSON row to the output writer
&mut self
row
&Value
&mut self
row
&Value