- July 10, 2017 at 2:34 pm #20858Aman #4
Why do we deserialize our Salesforce JSON response in different Formats?
Sometimes we deserialize our response in Apex class, sometimes in Map and sometimes in simple sObjects.January 30, 2018 at 4:08 pm #24724Manpreet #232
This totally depends upon our requirement. If we need 2 or 3 fields from the Response then we don’t need to create an additional class. If our response size is large then probably we can make use of an apex class. Thus it all depends upon requirement.
Thanks.September 30, 2018 at 3:13 am #41351Avnish Yadav #3
If you didn’t serialize the object into JSON, then the object would not be in a format that the consumer (the system who did the request) would understand. The purpose of serializing it into JSON is so that the message will be a format that can be understood and from there, deserialize it into an object type that makes sense for the consumer.
Please Register to reply to this topic. /