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 6 years, 1 month 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