I'm trying to create two dependent lists which the values are extracted from a JSON variable.
The data is in this format:
{
"Name1": [
{
"Name1_Nickname": "ID1"
}
],
"Name2": [
{
"Name2_Nickaname": "ID2"
}
],
"Name3": [
{
"Name3_Nickname1": "ID3_1"
}, {
"Name3_Nickname2": "ID3_2"
}
]
}
So as you see i'm working on a Map<String,List<Map<String,String>>>
which i parsed to a json object. I'm trying to find a way to create a first Picklist with all the Name1, Name2, Name3 and depending on which Name we choose create a second picklist with Name1_Nickname for example if we choose Name1 and Name3_Nickname1, Name3_Nickname2 if we choose Name3