I am passing List attribute as a String to aura action by JSON.stringify
and this is what I am getting in the apex debug --
[{"minorDependent":"0032200000ADltqAAD","enrolledbyAdult":"0032200000ADlc1AAD"}]
This is a a list of JSON objects, however I am not able to deserialize into map--
I tried -
List<Map<String,Object>> lstMinorEnrolledBy = (List<Map<String,Object>>) JSON.deserialize(strMinorEnrolledBy, List<Map<String,Object>>.class);
Error message:
Apex Type unsupported in JSON: Object
List<Map<String,String>>