[][src]Function rustc_serialize::json::as_pretty_json

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

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