Source Code:
(back to article)
import json string_representation = '{"key1": "value1", "key2": "value2"}' dictionary = json.loads(string_representation) print(dictionary) # Ausgabe: {'key1': 'value1', 'key2': 'value2'}
Result:
Report an issue