Hi I\'ve got a JSON object provided by an ajax request.
Some of the values inside the json appears as null, but I want an empty String inst
null
empty String
Your function should be like this:
function (key, value) { return (value == null) ? "" : value }
Checks null and undefined values and returns an empty string
undefined