{
"Response":
{
"Header":
{
"SuccessYN":"Y",
"ReturnCode":"00",
"ErrMsg":""
},
"Body":
{
"@xsi.type":"idxBody",
"IndexModel":
[
{
"code":"A07",
"areaNo":1100000000,
"date":2014051806,
"today":7,
"tomorrow":7,
"theDayAfterTomorrow":""
}
]
}
}
}
String json = getUrl(jsonurl);
JSONObject jsonObj = new JSONObject(json);
JSONObject responseObj = jsonObj.get("Response");
JSONObject bodyObj = responseObj.get("Body");
contacts = bodyObj.getJSONArray("IndexModel");