Ask coding questions

← Back to all posts
Json error
Jehireal2

So I'm trying to store data in a json but it doesn't seem to work and I don't understand why
this is the part that's getting the error
users[str(User.id)]=500
users[str(User.id)]=0
users[str(User.id)]=1

Voters
Jehireal2
Comments
hotnewtop
Jehireal2

So I just found out myself that I had to put
users[str(User.id)] ={}