I am receiving a response from a service in text format unfortunately I cannot ask them to send me in JSON format) below is the reponse:
'{message: Successfully sent data for processing, execId: d03c96hg-4098-47b9-9e4b-3cb2c}'
I want to either convert this to dict or json but I am unable to do so, as the string inside the '{ }' does not have single or double quotes.
I have tried using json.loads(), json.dumps(), ast.literal() and also few other methods, but was not able to achieve the desired output.
The output desired is:
{'message': 'Successfully sent data for processing', 'execId' : 'd03c96hg-4098-47b9-9e4b-3cb2c' }