I try to write a string to a file in Python and fail,
mystr = '{"a": "{\'a\': [\'b\': [\'\\saaaalam\\Mira.h\']}, {\'c\': [\'C:\\a\\t.exe\']}", "b": "open"}'
with open('test.json', 'w') as out_file:
out_file.write(mystr)
The file "test.json" does not exist! However, if I for example remove an "a" in "saaalam" it works.