I'm feeling completely lost right now. I've spent hours trying to solve this issue, but every attempt has been a failure. It's almost like my vision is failing me too. I really hate admitting when I need help, but at this moment in time, I don't have any other choice.
The json-response I received from a page is structured like this:
[Object { timestamp="2015-01-04 21:05:16", value="25.4"},
Object { timestamp="2015-01-04 21:10:27", value="25.3"},
Object { timestamp="2015-01-04 21:15:38", value="28.7"},
Object { timestamp="2015-01-04 21:20:49", value="33.5"}]
What I actually need it to look like is this:
[ [1183939200000,40.71],
[1184025600000,40.38],
[1184112000000,40.82],
[1184198400000,41.55],
[1184284800000,41.18],
[1184544000000,41.06]]
I've tried a variety of approaches and I feel embarrassed having to ask for assistance on what should be a simple task.
Your help is greatly appreciated!
Edit:
Upon further investigation, the json response I'm receiving looks like this:
[{"timestamp":"2015-01-04 21:05:16","value":"26.9"},
{"timestamp":"2015-01-04 21:10:27","value":"27.1"},
{"timestamp":"2015-01-04 21:15:38","value":"24.8"},
{"timestamp":"2015-01-04 21:20:49","value":"21.4"},
{"timestamp":"2015-01-04 21:26:01","value":"19.6"}]
When I console.debugged it, I got the "object" form. I'm not sure if this detail makes a difference or not.
Thank you once again.