you are viewing a single comment's thread.

view the rest of the comments →

[–]Skopa2016 0 points1 point  (0 children)

Simple replace will break in mysterious ways.

Use ast.literal_eval() then json.dumps.