I am trying to parse the below response but im getting the following error FATAL_ERROR System.TypeException: Invalid conversion from runtime type Map<String,ANY> to Map<String,List> Can someone tell me how to parse it? I haven't used any wrapper class though but when i use the map.get I just get one value instead of a list of values.
//String jsonInput2='{"UserDetails":[{"ContactLastName":"TestAcc","ContactFirstName":"TheLandlord","IsActive":true,"ContactRecordTypeId":"0120C000001OpcIQAS","ContactId":"0030C00000TLabQQAT","AccountId":"0010C00000ToNO9QAN"}]}';
Map<string,list<object>> strObjMap= new Map<string,list<object>>();
Map<string,list<object>> obj = (Map<string,list<object>>)JSON.deserializeUntyped(jsonInput);
system.debug('Obj data >>>'+obj.values().size());