pub fn to_vec_pretty<T: Serialize>(value: &T) -> Result<Vec<u8>, JsonError>
Serialize a value to a pretty-printed JSON byte vector.