rob
Create another BO called theItems. 2 fields: Name & Displayname
NOTE: If you don't make these long enough, you'll get a runtime error about Truncation
Actually, to plan ahead, you may want to name this something like LL_theItems
Your RestReply BO needs to have 2 fields: (and maybe name this LL_items_TOP, to mean its just the placeholder TOP level object. you'll prolly have more similar BOs that need to follow this structure as you progress.)
Items type "theItems" owns Multiple, create the field down in "theItems" to point back here
Count type numeric
Visually, below, you can see the structure of whats coming back.
1 Record that has Items & Count, and Items contains an array of more data (we put that in theItems)
Aware will properly create the 1 header record, and 5 records for the children.
copy & paste the reply into this website: https://codebeautify.org/jsonviewer for easy viewing
{
"Items": [
{
"Name": "en-AU",
"Displayname": "English (Australia)"
},
{
"Name": "en-GB",
"Displayname": "English (United Kingdom)"
},
{
"Name": "en-NZ",
"Displayname": "English (New Zealand)"
},
{
"Name": "en-US",
"Displayname": "English (United States)"
},
{
"Name": "nl-NL",
"Displayname": "Nederlands"
}
],
"Count": 5
}