I have a JSON array with arrays inside. How can i Parse this using Json.simple.
JSON Object example:
[
{
"ID":"1",
"Objects":[
{
"ObjectID":"5"
},
{
"ObjectID":"9"
}
]
},
{
"ID":"2",
"Objects":[
{
"ObjectID":"99"
},
{
"ObjectID":"11"
}
]
}
]
Class Foo
public int ID;
public List<Obj> Objects;
Class Obj
public int ObjectID;
so i want a list of Foo but in foo the Objects need to be filled as well
So what i need is:
List<Foo> foos = .... the output from the JSON