Activity › Forums › Salesforce® Discussions › what is the use of JSON.serializePretty() in apex? Salesforce® Discussions what is the use of JSON.serializePretty() in apex? Posted by Anuj on July 23, 2020 at 12:53 PM what is the use of JSON.serializePretty() in apex? Anjali replied 5 years, 10 months ago 2 Members · 1 Reply 1 Reply Anjali Member July 23, 2020 at 1:12 PM <div>serializePretty(objectToSerialize, suppressApexObjectNulls) Suppresses null values when serializing Apex objects into JSON content and generates indented content using the pretty-print format. </div> Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me