Activity Forums Salesforce® Discussions What is diff b/w JSON.serialize() and JSON.serializePretty() in Apex?

  • What is diff b/w JSON.serialize() and JSON.serializePretty() in Apex?

    Posted by Anuj on September 7, 2020 at 1:33 pm

    What is diff b/w JSON.serialize() and JSON.serializePretty() in Apex?

    Deepak replied 4 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Deepak

    Member
    September 8, 2020 at 6:22 am
    • JSON.serialize() serializes Apex objects into JSON content.
    • JSON.serializePretty() serializes Apex objects into JSON content and generates indented content using the pretty-print format.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos