// JSON TO CSV var json = data.content; var fields = Object.keys(json[0]) var replacer = function(key, value) { return value === null ? \'\' : value } var csv = jso