I have a json from site https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=MSFT&outputsize=full&apikey=demo
It looks like
{
"Meta Data": {
"1. Information": "Daily Prices (open, high, low, close) and Volumes",
"2. Symbol": "MSFT",
"3. Last Refreshed": "2018-07-03",
"4. Output Size": "Full size",
"5. Time Zone": "US/Eastern"
},
"Time Series (Daily)": {
"2018-07-03": {
"1. open": "100.4800",
"2. high": "100.6300",
"3. low": "98.9400",
"4. close": "99.0500",
"5. volume": "14670275"
},
"2018-07-02": {
"1. open": "98.1000",
"2. high": "100.0600",
"3. low": "98.0000",
"4. close": "100.0100",
"5. volume": "19564521"
}
}
}
You can see in "Time Series (Daily)" there are different date objects. I want to access all the keys in each date and want to put data in array. I am using javascript and have no idea how to iterate through these different dates.
console.log(data['TimeSeries (Daily)']['2018-07-03']);
This is how i accessed date, but this is single date i want to iterate through each.