From 847ec3c85dc5318242002e72fb72691224189cf2 Mon Sep 17 00:00:00 2001 From: Ilya Radchenko Date: Fri, 19 Jun 2015 14:39:08 -0400 Subject: [PATCH] Remove json conversion If data is invalid, it will fail elsewhere no. Removed due to #39 --- lib/json2csv.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/json2csv.js b/lib/json2csv.js index 7d642776..8d20689c 100644 --- a/lib/json2csv.js +++ b/lib/json2csv.js @@ -44,9 +44,6 @@ var typeOf = function(obj) { * @param {Function} callback Callback function returning error when invalid field is found */ var checkParams = function(params, callback) { - //#check params.data - params.data = JSON.parse(JSON.stringify(params.data)); - // if data is an Object, not in array [{}], then just create 1 item array. // So from now all data in array of object format. if (typeOf(params.data) != 'array') {