Function to_json_file

Source
pub async fn to_json_file<S>(path: &str, json: &S) -> Result<()>
where S: Serialize,