I'm trying to convert a string to a dictionary but I keep getting this error:
ValueError: dictionary update sequence element #0 has length 1; 2 is required
Here's my code:
string = r'{"extra":[{"text":"Hello World"}]}'
json_data = dict(string)
loadsfunction to decode the string into a Pythondict)