Skip to main content

write_json

Function write_json 

Source
pub fn write_json<T>(
    path: impl AsRef<Path>,
    value: &T,
    pretty: bool,
) -> Result<()>
where T: Serialize,
Expand description

Write a value as JSON to a file.