(data, filename, encoding="utf-8")
| 24 | |
| 25 | |
| 26 | def save_to_json_file(data, filename, encoding="utf-8"): |
| 27 | dir_name = os.path.dirname(filename) |
| 28 | if not os.path.exists(dir_name): os.makedirs(dir_name) |
| 29 | |
| 30 | with open(filename, "w", encoding=encoding) as f: |
| 31 | json.dump(data, f, indent=2, ensure_ascii=False) |
nothing calls this directly
no outgoing calls
no test coverage detected