saveJson#
- pyCGM2.Utils.files.saveJson(path: str, filename: str, content: Dict, ensure_ascii: bool = False)#
Save a dictionary as a JSON file.
- Parameters:
path (str) – The directory path to save the JSON file.
filename (str) – The name of the JSON file to be saved.
content (Dict) – The dictionary content to be saved as JSON.
ensure_ascii (bool, optional) – If set to False, non-ASCII characters will be saved as they are. Defaults to False.