You need to sign in to do that
Don't have an account?
Anton | De Ondernemer
JSON not suppressing null values
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_System_Json.htm
according to the above link, since the summer '16 release it should be possible to suppress null values:
serialize(objectToSerialize, suppressApexObjectNulls)
If I do the following code and debug the string, it still shows the null values.
Is it bugged? anybody knows a workaround?
according to the above link, since the summer '16 release it should be possible to suppress null values:
serialize(objectToSerialize, suppressApexObjectNulls)
String customJSONBody = JSON.serialize(myObject, true);
If I do the following code and debug the string, it still shows the null values.
Is it bugged? anybody knows a workaround?
Try checking if your object class is using the current API version.