diff --git a/buttons/button.download.js b/buttons/button.download.js index 7d3534e..36de995 100644 --- a/buttons/button.download.js +++ b/buttons/button.download.js @@ -43,7 +43,7 @@ name = ''; } - if ($.isPlainObject(data)) { + if ($.isPlainObject(data) || $.isArray(data)) { $.each(data, function(idx, val) { if (name === '') { flattenJson(val, idx, flattened);