I currently do an API call to the Steam Web API which gets a json response which looks like this:
{
"response": {
"globalstats": {
"heist_success": {
"total": "58932654920",
"history": [
{
"date": 1486252800,
"total": "696574"
},
{
"date": 1486339200,
"total": "357344"
},
{
"date": 1486425600,
"total": "356800"
},
{
"date": 1486512000,
"total": "311056"
}
]
}
},
"result": 1
}
The date is in unix time stamp and the total is an amount. What I want to do is create a dictionary from the values in date and time and not the names. I tried using the following:
dict = dict(data['response']['globalstats']['heist_success']['history'])
But that just created a dict of "date" "total".
How can I create a dict of just the values?