Function jsonutils::file::write_json

source ยท
pub fn write_json<T: Serialize, P: AsRef<Path>>(
    path: P,
    value: T,
) -> Result<(), Error>
Expand description

Writes an object to a JSON file. This function will error if the file cannot be created or written to.