Skip to content

A simple node.js program that reads JSON data from a file and converts it to CSV. Currently only handles "flat" objects (doesn't take into account objects within objects or arrays).

Notifications You must be signed in to change notification settings

alonweinstein/json2csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

json2csv

This is a simple node.js program I created out of necessity to convert a file with JSON data (created by Parse.com data export) to a CSV. The file I built this for only had "flat" objects in it - no objects or arrays as values for keys - so this program (for now) only handles such files. This program expects the first element in the JSON file to be an array, and the CSV would be created from the objects within that array. The array name is currently hard-coded as "results" (which is what Parse.com puts in their data export files). (A sample JSON file is included in the repository.)

I upload this to Github just in case it turns out to be useful for anyone.

About

A simple node.js program that reads JSON data from a file and converts it to CSV. Currently only handles "flat" objects (doesn't take into account objects within objects or arrays).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published