I need to parse a JSON object that looks like the following (It has no name for the array):
{
"id": "123123",
[{
"id": "456456",
"name": "name1",
"content": "content1"
}, {
"id": "789789",
"name": "name2",
"content": "content2"
}]
}
I have two objects that look like this:
public class MyFirstObject {
private String id;
private List<MySecondObject> lst_entries;
}
public class MySecondObject {
private String id;
private String name;
private String content;
}
How do I parse the List of MySecondObject if the original JSON has no name for that object?
I've been looking for something like this in stackoverflow and haven't been able to find a answer or a case similar as mine that could help...
I'll appreciate help. Thanks!