pub fn json_result<T: Serialize, E: Serialize>(t: &Result<T, E>) -> String