네이버 api의 결과 값으로 아래 첨부한 데이터를 받습니다.
해당 데이터를 받아서 핸들링하려고 하는데,
VO안에 VO가 들어가는 2중이나 3중으로된 VO라면 그냥 VO class를 두세개 만들어서 진행해 왔는데,
그 이상은 전부 만들자니 너무 비효율 적인거 같아 어떤식으로 문제를 접근해야할지 질문드립니다.
============================================================================================
네이버 api로부터 받은 데이터 값.
{
"status": {
"code": 0,
"name": "ok",
"message": "done"
},
"results": [
{
"name": "roadaddr",
"code": {
"id": "4113510300",
"type": "L",
"mappingId": "02135103"
},
"region": {
"area0": {
"name": "kr",
"coords": {
"center": {
"crs": "",
"x": 0,
"y": 0
}
}
},
"area1": {
"name": "경기도",
"coords": {
"center": {
"crs": "EPSG:4326",
"x": 127.550802,
"y": 37.436318
}
},
"alias": "경기"
},
"area2": {
"name": "성남시 분당구",
"coords": {
"center": {
"crs": "EPSG:4326",
"x": 127.118925,
"y": 37.38282
}
}
},
"area3": {
"name": "정자동",
"coords": {
"center": {
"crs": "EPSG:4326",
"x": 127.111533,
"y": 37.361458
}
}
},
"area4": {
"name": "",
"coords": {
"center": {
"crs": "",
"x": 0,
"y": 0
}
}
}
},
"land": {
"type": "",
"number1": "6",
"number2": "",
"addition0": {
"type": "building",
"value": "NAVER그린팩토리"
},
"addition1": {
"type": "zipcode",
"value": "13561"
},
"addition2": {
"type": "roadGroupCode",
"value": "411353180030"
},
"addition3": {
"type": "",
"value": ""
},
"addition4": {
"type": "",
"value": ""
},
"name": "불정로",
"coords": {
"center": {
"crs": "",
"x": 0,
"y": 0
}
}
}
}
]
}