Skip to main content

write_json

Function write_json 

Source
pub fn write_json<S: Serialize>(
    path: impl AsRef<Path>,
    content: &S,
) -> Result<()>
Available on crate features fs and json only.
Expand description

Serialize data as JSON and write it to a file.