mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-25 18:49:50 -04:00
parent
5dbf0eca3f
commit
e8e3ffab2c
@ -79,7 +79,7 @@ impl JsonConverter {
|
|||||||
|
|
||||||
fn write(&self, v: &Val, w: &mut Write) -> Result {
|
fn write(&self, v: &Val, w: &mut Write) -> Result {
|
||||||
let jsn_val = try!(self.convert_value(v));
|
let jsn_val = try!(self.convert_value(v));
|
||||||
try!(serde_json::to_writer(w, &jsn_val));
|
try!(serde_json::to_writer_pretty(w, &jsn_val));
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user