def _try_persist_settings(serializable_data: dict):
with open(CONFIG_FILE, "<STR_LIT:w>") as json_file:<EOL><INDENT>json.dump(serializable_data, json_file, indent=<NUM_LIT:4>)<EOL><DEDENT>
Write the settings as JSON to the configuration file
:raises TypeError: If the user tries to store non-serializable types
:raises ValueError: If the user tries to store circular referenced (recursive) structures.