Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert string representation of dict to dict python

>>> import ast
>>> ast.literal_eval("{'muffin' : 'lolz', 'foo' : 'kitty'}")
{'muffin': 'lolz', 'foo': 'kitty'}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #string #representation #dict #dict #python
ADD COMMENT
Topic
Name
3+4 =