I have my following code:
for noms in json_obj['nom']:
Type = noms.split("-")
x = Type[1]
y = Type[2]
Where json_obj['nom']
has the following values:
[{u'nom': u'7558-802'}, {u'nom': u'7558-998'}]
What I'm looking for is that in "x" the value 7558 be saved and in "y" 802 and 998 be saved
But when I run my program, it sends me the following error:
Type = noms.split("-")
AttributteError: 'dict' object has no attribute 'split'