SyntaxFix
Write A Post
Hire A Developer
Questions
JSON.stringify removes the undefined keys.
removeUndefined = function(json){ return JSON.parse(JSON.stringify(json)) }