pub fn write_pretty<T: ?Sized + Serialize>(w: impl Write, x: &T) -> Result<()>
json
parse
Serialize the value into pretty-formatted JSON and write into the writer