I have this JSON Response
{
"data":{
"last_name":"abcdef",
"email":"[email protected]",
"data1":{
"data2":{
"membership":"senior"
},
"Skills":[
{
"C":"GOOD",
"C++":"AVERAGE",
"JAVA":"GOOD",
"WEB":"GOOD"
}
]
}
}
}
Now I use following method to parse it through GSON
public class ABC {
public String last_name;
public String email;
.
.
.
}
And then I do
let us consider JSON OBJECT is == responseObject
ABC obj = (ABC)responseObject // TypeCasting
obj.last_name gives me the result for lastname
How do I implement the array and other data1 dictionary ?