pub fn write_json_file<T>(path: &Path, value: &T) -> Result<(), Error>where T: Serialize,
Write a pretty-printed JSON file with mode 0600 on Unix.
0600