You need to sign in to do that
Don't have an account?
Shreya Salesforce
How to remove json object with null value from json array in Apex.
"customer" : [ {
"Type" : "Prospect",
"SFDCAccountId" : "0016F000034Noh8QAC",
"Phone" : "855245286896",
"Name" : "acc3",
"Email" : "test@test.com"
}, null ],
"Type" : "Prospect",
"SFDCAccountId" : "0016F000034Noh8QAC",
"Phone" : "855245286896",
"Name" : "acc3",
"Email" : "test@test.com"
}, null ],
You have to serialize JSON Response. use below code,
Hope this will help you.
Thanks
karthik