Hi Deepak,
You can make the use of JSON class which Contains methods for serializing Apex objects.
for more details you can refer the link below :-
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_System_Json.htm
-
This reply was modified 5 years, 9 months ago by
Kirandeep.
-
This reply was modified 5 years, 9 months ago by
Kirandeep.