pub fn write_json_sync<T>(filename: &Path, value: &T) -> Result<()>where T: Serialize,
Write a serializable value to a text file using serde-json.
serde-json