I try to convert all values of a FlatterDict to strings.
The email field caused an exception.
See below
data = {
"x": "12",
"other": "MLL",
"channel": 33,
"language": "EN",
"email": [
"jack@ecme.com"
]
}
flat = flatdict.FlatterDict(data)
for k in flat.keys():
flat[k] = str(flat[k])
Error:
File "C:\dev\tools\python371\lib\site-packages\flatdict.py", line 416, in __setitem__
pk, self._delimiter, ck))
TypeError: Assignment to invalid type for key email:0
I try to convert all values of a FlatterDict to strings.
The email field caused an exception.
See below
Error: