pub fn write_json(path: &Path, doc: &str) -> Result<()>
Write a JSON document to path, its parent directories created.
path
comnum_core::Error::Io if the file cannot be written.
comnum_core::Error::Io