dev #19
@ -33,7 +33,11 @@ def jsonSave(contents: Any, filename: str) -> None:
|
||||
"""Dumps dict/list arg1 to file arg2"""
|
||||
try:
|
||||
with open(filename, "w", encoding="utf8") as file:
|
||||
file.write(dumps(contents, ensure_ascii=False, indent=4))
|
||||
file.write(
|
||||
dumps(
|
||||
contents, ensure_ascii=False, indent=4, escape_forward_slashes=False
|
||||
)
|
||||
)
|
||||
file.close()
|
||||
except Exception as exp:
|
||||
logWrite(f"Could not save json file {filename}: {exp}\n{print_exc()}")
|
||||
|
Reference in New Issue
Block a user