Wie kann ich verhindern, dass json.dumps aus ' -> \' macht?
Verfasst: Mittwoch 8. April 2020, 23:24
Hallo,
ich habe ein Dictionary, das ich mittels json.dumps ins JSON-Format umwandle. Das Dictionary kann aber Werte mit französischen Wörtern enthalten, in denen ein Apostroph vorkommt.
Wie kann ich verhindern, dass json.dumps das ' escaped, also aus:
Chris
ich habe ein Dictionary, das ich mittels json.dumps ins JSON-Format umwandle. Das Dictionary kann aber Werte mit französischen Wörtern enthalten, in denen ein Apostroph vorkommt.
Wie kann ich verhindern, dass json.dumps das ' escaped, also aus:
Das hier macht?'
Viele Grüße\'
Chris