to_vec_pretty

Function to_vec_pretty 

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

Serialize the given data structure as a pretty-printed JSON byte vector.

Equivalent to serde_json::to_vec_pretty but with errors extended with serde_path_to_error.

See serde_json::to_vec_pretty for more documentation.