Timeline for Issue parsing an Array of JSON objects Error: Invalid conversion from runtime type List<ANY> to Map<String,ANY>
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 4, 2020 at 1:03 | vote | accept | Davis Handler | ||
Aug 3, 2020 at 20:12 | answer | added | salesforce-sas | timeline score: 1 | |
Aug 3, 2020 at 20:04 | comment | added | Sebastian Kessel |
See my answer below. That error is expected as Survey_Choices__c is not an object, but a list of objects
|
|
Aug 3, 2020 at 20:04 | comment | added | Davis Handler |
I get an error when trying to do something like this Map<String,Object> surveyChoices = (Map<String,Object>) surveyMap.get('Survey_Choices__c');
|
|
Aug 3, 2020 at 20:03 | comment | added | Davis Handler |
Hi @SebastianKessel I have added the closing ]
|
|
Aug 3, 2020 at 20:02 | history | edited | Davis Handler | CC BY-SA 4.0 |
added 1 character in body
|
Aug 3, 2020 at 20:00 | comment | added | Sebastian Kessel | Also, where is the line that throws the error on the title of your post? | |
Aug 3, 2020 at 19:54 | comment | added | Sebastian Kessel |
That JSON is not valid, you're missing a closing ] . Was that intentional?
|
|
Aug 3, 2020 at 19:35 | history | asked | Davis Handler | CC BY-SA 4.0 |