pub fn write_json<T: Serialize>(path: &Utf8Path, val: &T) -> Result<()>
Write Serializable data to a file. This function creates all parent folders if they do not exist.