diff --git a/convert.py b/convert.py index d8a9e3a..cd460cd 100644 --- a/convert.py +++ b/convert.py @@ -15,6 +15,8 @@ def ArgParser(): def convertDictToJson(dict,outputFile): with open(outputFile, "w",encoding='utf-8') as file: json_formatted_str = json.dumps(dict, ensure_ascii=False,indent=2) + json_formatted_str = json_formatted_str.replace('\\"', '"') # Unescape double quotes + json_formatted_str = json_formatted_str.replace('\\\\n', '\\n') # Unescape escaped newlines file.write(json_formatted_str) file.close()