I'm trying to parse a JSON that used the date as the array name and is therefore variable. How do I do this using Java / Spring?
"Time Series (Daily)": {
"2018-08-21": {
"1. open": "106.9200",
"2. high": "107.2500",
"3. low": "106.8100",
"4. close": "107.0650",
"5. volume": "1156207"
},
"2018-08-20": {
"1. open": "107.5100",
"2. high": "107.9000",
"3. low": "106.4800",
"4. close": "106.8700",
"5. volume": "17914201"
},
To get time series (Daily) I'm using:
@JsonProperty("Time Series (Daily)")
TimeSeries timeSeries;
But what do do with the TimeSeries object as
@JsonProperty("2018-08-21")
Date date;
would only get the first one?