pub fn save_document(path: &Path, document: &Value) -> Result<(), String>Expand description
Write one settings document, leaving the file it replaces whole.
A symlink at path is followed rather than replaced: the rename onto
a link would break a profile setup that points one config dir’s
settings.json at another’s.