I want to change this dict:
{"entityMap": {}, "blocks": [{"key": "", "text": "Testing", "type": "unstyled", "depth": 0, "inlineStyleRanges": [], "entityRanges": [], "data": {}}]}
into this :
{\"entityMap\": {}, \"blocks\": [{\"key\": \"\", \"text\": \"Testing\", \"type\": \"unstyled\", \"depth\": 0, \"inlineStyleRanges\": [], \"entityRanges\": [], \"data\": {}}]}
I've tried this method:
json.dumps()
but the result is a double backslash
{\\"entityMap\\": {}, \\"blocks\\": [{\\"key\\": \\"\\", \\"text\\": \\"Testing\\", \\"type\\": \\"unstyled\\", \\"depth\\": 0, \\"inlineStyleRanges\\": [], \\"entityRanges\\": [], \\"data\\": {}}]}
How to achieve this in python?