I have a Python project and need to store multiple values in JSON, but only the first value is stored. I tried to use a loop structure but still only the first value is stored. How can I store all values?
The code:
entry = {
'face_names': "any",
'data_atual': data_texto
}
with open('consulte.json', 'w') as filehandle:
json.dump(entry, filehandle)