to_vec_pretty

Function to_vec_pretty 

Source
pub fn to_vec_pretty<T>(value: &T) -> Result<Vec<u8>, JsonError>
where T: Serialize,
Expand description

Serialize a value to a pretty-printed JSON byte vector.