The Python Oracle

Convert a String representation of a Dictionary to a dictionary

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Meditation

--

Chapters
00:00 Question
00:38 Accepted answer (Score 1616)
01:26 Answer 2 (Score 377)
02:17 Answer 3 (Score 226)
02:32 Answer 4 (Score 52)
02:53 Thank you

--

Full question
https://stackoverflow.com/questions/9882...

Accepted answer links:
[ast.literal_eval]: https://docs.python.org/library/ast.html...

Answer 2 links:
https://docs.python.org/3.8/library/json...
[jQuery.parseJSON throws “Invalid JSON” error due to escaped single quote in JSON]: https://stackoverflow.com/questions/2275...

Answer 4 links:
[Yaml]: https://pypi.python.org/pypi/PyYAML

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #string #dictionary

#avk47