rustc_serialize::json

Function as_pretty_json

Source
pub fn as_pretty_json<T: Encodable>(t: &T) -> AsPrettyJson<'_, T>
Expand description

Create an AsPrettyJson wrapper which can be used to print a value as JSON on-the-fly via write!