to_string_pretty

Function to_string_pretty 

Source
pub fn to_string_pretty<T>(value: &T) -> Result<String>
where T: Serialize,
Expand description

Serialize a Rust value to a JAML string with pretty formatting.

Note: JAML is inherently indentation-based (like YAML), so this function produces the same output as to_string. It exists for API consistency with other serialization formats.