so I have an array of hashes (json format) that look like this
[
{
"2017-04-01 00:00:00 UTC": 100.992226272734
},
{
"2017-03-01 00:00:00 UTC": 3.0594465818934964
},
]
now i want to map each key into new value with a static key date:, its came a same way with value, each value has new static key value: , what i mean is those hash now look like :
[
{
"date": "2017-04-01 00:00:00 UTC",
"value": 100.992226272734
},
{
"date": "2017-03-01 00:00:00 UTC",
"value": 3.0594465818934964
}
]
can anyone help me show the best way to do that ?