-
Notifications
You must be signed in to change notification settings - Fork 59
Closed
Description
Background Information
- Module Version:
3.0.0 - Node/Browser Version:
11.6.0
The issue I'm reporting is with:
- json2csv
- csv2json
I have...
- searched to see if an issue has already been reported.
- verified that my JSON/CSV data is valid (using something like http://jsonlint.com or https://csvlint.io/).
- tried upgrading to the latest version of json-2-csv (since the issue may already be fixed).
Actual Behavior
In 3.x the emptyFieldValue is removed. The upgrade guide says "Please open an issue on the GitHub repository mrodrig/json-2-csv if you have a valid use case for this option to be implemented.", so here it is!
Expected Behavior
We use the json2csv function for exporting data from a database to CSV for end-user purposes. End-users mostly use those CSV's in Excel. Previously we used the option emptyFieldValue with the value '' to replace values like null to an empty field in the CSV. In 3.0.0 those fields are now filled with null, that could be relevant when converting it back to json, but not for end-user display.
Metadata
Metadata
Assignees
Labels
json2csvJSON to CSVJSON to CSV