Notifications
Clear all
Sep 04, 2021 6:48 am
How to deserialize json body data received from a REST Response into a list?
1 Reply
Sep 04, 2021 6:54 am
// received json: jsonBody = '[{"pnm__c":"pname1", "material__c":"materialname1"}, {"pnm__c":"pname2", "material__c":"materialname2"}]'; // object Data__c records coming from json into a list List dList = (List) System.JSON.deserialize(jsonBody, List.class); System.debug('dList : ' + dList);