json-2-csv
Advanced tools
Comparing version 3.5.4 to 3.5.5
@@ -8,3 +8,3 @@ { | ||
"description": "A JSON to CSV and CSV to JSON converter that natively supports sub-documents and auto-generates the CSV heading.", | ||
"version": "3.5.4", | ||
"version": "3.5.5", | ||
"repository": { | ||
@@ -11,0 +11,0 @@ "type": "git", |
@@ -144,2 +144,3 @@ # json-2-csv | ||
-E, --empty-field-value <value> Empty field value | ||
-A, --expand-array-objects Expand array objects | ||
-k, --keys [keys] Keys of documents to convert to CSV | ||
@@ -146,0 +147,0 @@ -h, --help output usage information |
@@ -239,3 +239,3 @@ 'use strict'; | ||
function recordFieldValueToString(fieldValue) { | ||
if (_.isArray(fieldValue) || _.isObject(fieldValue)) { | ||
if (_.isArray(fieldValue) || _.isObject(fieldValue) && !_.isDate(fieldValue)) { | ||
return JSON.stringify(fieldValue); | ||
@@ -242,0 +242,0 @@ } else if (_.isUndefined(fieldValue)) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59771
208