Skip to main content

write_json

Function write_json 

Source
pub fn write_json(path: &Path, doc: &str) -> Result<()>
Expand description

Write a JSON document to path, its parent directories created.

ยงErrors

comnum_core::Error::Io if the file cannot be written.