/json2csv

sample node script for converting json data structure to flat csv

Primary LanguageJavaScriptMIT LicenseMIT

json2csv

This sample node script takes a json data feed with complex hierarchy and writes a flat csv output file. This sample uses the FT election results json feed.

install

Open folder in Terminal and type npm install to install dependencies (d3, for its csv and json modules)

usage

open folder in Terminal, type node main.js to run the script, it will return an output .csv file in the same directory.