SyntaxFix
Write A Post
Hire A Developer
Questions
Note that you can escape a json array / dictionary by doing json.dumps twice and json.loads twice:
>>> a = {'x':1} >>> b = json.dumps(json.dumps(a)) >>> b '"{\\"x\\": 1}"' >>> json.loads(json.loads(b)) {u'x': 1}