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