Help to map json response to java and JPA entity

Job ID: 34313712

Budget: $10 – $15 USD

I have a json response which I need help to convert to java object and into JPA entity.

It looks like this:

{
"success": 1,
"results": [
{
"event_id": "5164",
"lines": {
"updated_at": "16596745",
"key": "F3I3",
"sp": {
"handicap": {
"id": "93",
"name": "Handicap",
"odds": [
{
"id": "117",
"odds": "2.040",
"header": "1",
"handicap": "0.0, -0.5"
},
]
},
"goal": {
"id": "103",
"name": "Goal",
"odds": [
{
"id": "11768",
"odds": "2.050",
"header": "Over",
"name": "2.5"
},
]
},
}
},
"goals": {
"updated_at": "1659696523",
"key": "F3I6",
"sp": {
"first": {
"id": "102",
"name": "First",
"odds": [
{
"id": "1179",
"odds": "4.500",
"header": "Over",
"name": "Goals",
"handicap": "0.5"
},
{
"id": "11710",
"odds": "1.181",
"header": "Under",
"name": "Goals",
"handicap": "0.5"
}
]
}
}
},
}
]
}

Please notice the dynamic keys in different levels in the response.