Function mz_repr::explain::json::json_string

source ·
pub fn json_string<T: DisplayJson>(t: &T) -> String
Expand description

Render a type t: T as ExplainFormat::Json.

§Panics

Panics if the DisplayJson::to_serde_value or the subsequent serde_json::to_string_pretty call return a serde_json::Error.