Manikandan Thiagarajan
asked on
arrylist inside arraylist
i want to make inside json Array list inside array list
{
"groupInformationKey": 6,
"groupName": "PortalAdministrator",
"subGroups": [{
"groupInformationKey": 52,
"groupName": "axfxf",
"subGroups": [{
"groupInformationKey": 53,
"groupName": "axx",
"subGroups": [{groupInformationKey": 54,
"groupName": "ox",
"subGroups": null,
"subNestedGroup": null,
}
how to make with array list and pojo with sub group inside subgroup and so on
{
"groupInformationKey": 6,
"groupName": "PortalAdministrator",
"subGroups": [{
"groupInformationKey": 52,
"groupName": "axfxf",
"subGroups": [{
"groupInformationKey": 53,
"groupName": "axx",
"subGroups": [{groupInformationKey": 54,
"groupName": "ox",
"subGroups": null,
"subNestedGroup": null,
}
how to make with array list and pojo with sub group inside subgroup and so on
ASKER
that is ok how to make subgroup inside subgroup from the above example
can you give me the pseudo code for that
how to set DTO and how to add in the arraylist
can you give me the pseudo code for that
how to set DTO and how to add in the arraylist
ASKER
Please help me
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
hmm, the marked solution does not create your described JSON.
Open in new window
Then just serialize an instance of that class.