pub fn to_writer_pretty<T, W>(writer: W, to: &T) -> Result<()>where T: Serialize + ?Sized, W: Write,
Write a value to a string
when the data can not be written