Notifications
Clear all
Sep 04, 2021 6:42 am
How to quickly generate json body data for any object to post to a REST resource.
1 Reply
Sep 04, 2021 6:45 am
List <Data__c> dList = [SELECT Id, Name FROM Data__c WHERE Name = 'John'];
String jsonStr = JSON.serialize(dList);
System.Debug('jsonStr: ' + jsonStr);