JSON parsing in android using inbuilt json library?

Thursday, July 3, 2014

How to parse this JSON in Android???



{
"From": "13-06-2014",
"To": "19-06-2014",
"Employee": [
{
"EmpId": "1",
"EmpCode": "101",
"EmpName": "abc",
"EmpLName": "def",
"Job": [
{
"ID": "1",
"JobName": "abc",
"Time": "12:00"
},
{
"ID": "1",
"JobName": "abc",
"Time": "12:00"
},
{
"ID": "1",
"JobName": "abc",
"Time": "12:00"
},
{
"ID": "1",
"JobName": "abc",
"Time": "12:00"
},
{
"ID": "1",
"JobName": "abc",
"Time": "12:00"
},
{
"ID": "1",
"JobName": "abc",
"Time": "12:00"
},
{
"ID": "1",
"JobName": "abc",
"Time": "12:00"
}
]
},
{
"EmpId": "1",
"EmpCode": "101",
"EmpName": "abc",
"EmpLName": "def",
"Job": [
{
"ID": "1",
"JobName": "abc",
"Time": "12:00"
},
{
"ID": "1",
"JobName": "abc",
"Time": "12:00"
},
{
"ID": "1",
"JobName": "abc",
"Time": "12:00"
},
{
"ID": "1",
"JobName": "abc",
"Time": "12:00"
},
{
"ID": "1",
"JobName": "abc",
"Time": "12:00"
},
{
"ID": "1",
"JobName": "abc",
"Time": "12:00"
},
{
"ID": "1",
"JobName": "abc",
"Time": "12:00"
}
]
}
]
}






http://ift.tt/1zc7EsI