pub fn to_string_pretty<T: Serialize>(value: &T) -> Result<String, Error>
Serialize a value to a pretty-printed JSON string with 2-space indentation.