data = """[
{"name": user_nickname,
"password": rpass,
"position": normal_position
}
]"""
with open('users.json','r+') as f:
json.dump(data, f)
with open('users.json', 'r+') as fa:
data = json.load(fa)
data["name"] = str_user_nickname
data["password"] = rpass
data["position"] = normal_position
f.seek(0,0)
json.dump(data, fa)
data
в вашем коде должна быть строкой, а не списком?