Button: Download - support arrays

pull/389/head
Allan Jardine 6 years ago
parent 0e9fada85b
commit d44b16bf3d

@ -43,7 +43,7 @@
name = '';
}
if ($.isPlainObject(data)) {
if ($.isPlainObject(data) || $.isArray(data)) {
$.each(data, function(idx, val) {
if (name === '') {
flattenJson(val, idx, flattened);

Loading…
Cancel
Save