Perform a JSON.stringify on values who's type is "object"

This commit is contained in:
Eran Sandler 2015-01-11 12:28:21 +02:00
parent b6dbb4e3f8
commit d4b5d78743

View File

@ -26,6 +26,8 @@
} else if (_.isString(v) && v.match(/^\d{4}-\d{2}-\d{2}/)) {
row[k] = moment(v);
columnTypes[k] = 'date';
} else if (typeof(v) == 'object') {
row[k] = JSON.stringify(v);
}
}, this);
}, this);