I am trying to parse a JSON object into an APEX select list. There are ways to parse a JSON object, but I have not yet come across or figured a way to parse a JSON object and use it as a select list in the Apex application. Most questions have been around generating JSON from the Apex data. Any help would be appreciated. Thanks!
The data I want to parse (simpler example) is as below:
{
"verumModelObjectName": "Address",
"verumObjectList": [
{
"locationID": "20005",
"country": "ARE"
},
{
"locationID": "31083",
"country": "ARE"
},
{
"locationID": "31118",
"country": "ARE"
},
{
"locationID": "32185",
"country": "ARE"
},
{
"locationID": "32138",
"country": "ARE"
},
{
"locationID": "32070",
"country": "ARE"
},
{
"locationID": "32094",
"country": "ARE"
},
{
"locationID": "20006",
"country": "ARG"
},
{
"locationID": "32196",
"country": "ARG"
},
{
"locationID": "41057",
"country": "ARG"
},
{
"locationID": "31032",
"country": "ARG"
},
{
"locationID": "33212",
"country": "ARG"
},
{
"locationID": "3558",
"country": "ARG"
},
{
"locationID": "33126",
"country": "ARG"
},
{
"locationID": "31007",
"country": "ARG"
},
{
"locationID": "33127",
"country": "ARG"
},
{
"locationID": "31100",
"country": "ASM"
},
{
"locationID": "20008",
"country": "AUS"
},
{
"locationID": "20591",
"country": "AUS"
},
{
"locationID": "31125",
"country": "AUS"
}]
"statusCode": 200
}