serde::json

Function to_pretty_string

source
pub fn to_pretty_string<T: Serialize>(
    value: &T,
) -> Result<String, JsonSerializationError>
Expand description

Serialize a value of type T to a formatted JSON string.