I want to save some data automatically in a json file. Here my data:
names = ['name1','name2','name3','name2']
number1 = [43,32,12,12]
number2 = [3,6,6,3]
dates = ['01.03.2021 13:05:59','01.03.2021 13:46:04','01.03.2021 14:05:59','01.03.2021 13:30:04']
What I want is something like this:
{
"items":[
{
"time": "01.03.2021 13:54:21",
"name": "name1",
"age": 43,
"coins": 3
},
{
"time": "01.03.2021 13:46:04",
"name": "name2",
"age": 32,
"coins": 6
}
...
]
}
The elements for
name1are with[0],name2has them with[1],etc.)
And the keys or the structure doesn't matter it only has to make sense.