pub fn write_json<S: Serialize>( path: impl AsRef<Path>, content: &S, ) -> Result<()>
fs
json
Serialize data as JSON and write it to a file.