[−][src]Function arctk::file::save::as_json
pub fn as_json<T: Serialize>(instance: &T, path: &Path) -> Result<(), Error>
Serialise the type in json format.
Errors
if the instance can not be serialised into json or if the file can't be written to.