I have string objects that I believe are the result of a JSON.stringify()
call in javascript. The strings look something like this when printed from my python script:
'{hashtags=[],
urls=[{url=https://t.com/H9W2D8GojG,
expanded_url=https://twitter.com/i/web/status/1202511173138169856,
display_url=twitter.com/i/web/status/1…,
indices=[117, 140]}
]
}'
I can't just call json.loads()
on this string because of the lack of inner quotation marks. Is there any way to turn this into a dictionary without manually parsing it?