I have an API which returns JSON in below format. Need to design Java class for the same. These values will be varying. So can't create a java class with fixed properties. JSON as:
{
"jan": {
"2020-01-01": {
"A": 348,
"B": 408
},
"2020-01-02": {
"A": 348,
"B": 408
}
},
"feb": {
"2020-02-01": {
"A": 348,
"B": 408
},
"2020-02-02": {
"A": 348,
"B": 408
}
}
}
How to design Object in Spring Boot/Java for this?