I have the following code:
JSON STRING (recordIDListJSON):
[\"a1mf0000000TU00AAG\", \"a1mf0000000TTzvAAG\", \"a1mf0000000KGFsAAO\"]"
system.debug('Passed in value: '+ recordIdListJSON); recordIdList = (List<String>)System.JSON.deserialize(recordIdListJSON,List<String>.class); system.debug('Deserialized to: ' + recordIdList);
This is how I am trying to do it currently, but I'm getting the following error in the dev console logs:
FATAL_ERROR System.JSONException: Malformed JSON: Expected '[' at the beginning of List/Set
Can anybody tell me where I'm going wrong? Thanks!