Convert Data Between CSV And JSON With Simple JavaScript
The Polyglot Developer
AUGUST 20, 2018
A popular subject on the blog has always been around the conversion of one data format to another data format. For example we’ve already seen how to convert XML data to JSON data with JavaScript , but what if we wanted to work with comma separated value (CSV) data instead? We’re going to see how to take a CSV file, parse it into JSON, make some changes, and then convert it back into a CSV file using Node.js and a few readily available packages.
Let's personalize your content