json_formatter

Function json_formatter 

Source
pub fn json_formatter<T>(pretty: bool, value: &T) -> String
where T: Serialize,
Expand description

Formats a value as a JSON string.