pub fn decode<T>(json_str: &str) -> Result<T, Error>