How to create JSON String using Apex in Salesforce?

Sample Code:

String strJSON;
strJSON = JSON.serialize(listJSONWrapper);

here listJSONWrapper can be wrapper class list or sObject list.

Cheers!!!

No comments:

Post a Comment