Function casper_types::json_pretty_print[][src]

pub fn json_pretty_print<T: ?Sized>(value: &T) -> Result<String> where
    T: Serialize

Serialize the given data structure as a pretty-printed String of JSON using serde_json::to_string_pretty(), but after first reducing any string values over MAX_STRING_LEN to display the field’s number of chars instead of the actual value.