My json objects array contains the following data:
[{"SensorID":2,"Temperature":34.0,"Humidity":56.0,"Carbon":87.0,"DateTime":"2017-03-08T10:07:00","ID":10},{"SensorID":2,"Temperature":34.0,"Humidity":43.0,"Carbon":87.0,"DateTime":"2017-03-09T12:00:00","ID":12},{"SensorID":2,"Temperature":23.0,"Humidity":89.0,"Carbon":65.0,"DateTime":"2017-03-09T12:00:00","ID":13},{"SensorID":2,"Temperature":34.0,"Humidity":56.0,"Carbon":87.0,"DateTime":"2017-03-08T10:07:00","ID":16},{"SensorID":2,"Temperature":87.0,"Humidity":34.0,"Carbon":23.0,"DateTime":"2017-03-08T10:07:00","ID":18},{"SensorID":2,"Temperature":44.0,"Humidity":67.0,"Carbon":43.0,"...
I am looking to transform this array into a new format like
[[Date.UTC(2015,1,13),0.8783],
[Date.UTC(2015,1,15),0.8774],
[Date.UTC(2015,1,16),0.8807],
[Date.UTC(2015,1,17),0.8762],
[Date.UTC(2015,1,18),0.8774],
[Date.UTC(2015,1,19),0.8798],
[Date.UTC(2015,1,20),0.8787],]]
I need to convert my original array into the second format to use in highstock charts. How can I achieve this transformation?