So, I access an API an receive data in JSON format as shown below. I'm looking to draw a chart with the dates on the "x" axis and the Data on the "y" axis. I don´t know what dates I will be getting, and they will be plenty. I want to save that data in an array/vector of objects that contain a structure containing the date and value at that date. Because this isn't a key-value relation, I do not know how to parse it, do you?
Structure
typedef struct
{
float Data;
string date;
}Data_t;
JSON received
"Information: Data": {
"2021-06-01 16:00:01": {
"Data": "139.5578"
},
"2021-05-28": {
"Data": "137.7645"
},
"2021-05-21": {
"Data": "135.8931"
},
"2021-05-14": {
"Data": "133.6110"
}
...
...
...