Hi,
I’ve found that when returning an JSON object that has null fields these are not included in the response.
For example if in my handler (node.js) I perform the following:
module.exports.getUserTest = function(event, context, cb) {
var myReturnObject = {
name: “Rick Deckard”,
genre: “male”,
phone: null,
city: null
}
return cb(null, myReturnObject);
}
The response the client gets is:
{
“name”: “Rick Deckard”,
“genre”: “male”
}
How can I return null fields?
Thank you in advance