Function write_json

Source
pub async fn write_json<T>(filename: &Path, value: &T) -> Result<()>
where T: Serialize,
Expand description

Write a serializable value to a text file using serde-json.