pub fn write_json<T: Serialize>(path: String, obj: &T)