rustc_ap_serialize::json
pub fn as_json<T>(t: &T) -> AsJson<T>
Creates an AsJson wrapper which can be used to print a value as JSON on-the-fly via write!
AsJson
write!