Skip to content

A little script that can convert any JSON file to CSV that can be used in D3.js

Notifications You must be signed in to change notification settings

VioletVivirand/convert-json-to-d3-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

convert-json-to-d3-csv

This is a little script that can convert any JSON file to CSV that can be used in D3.

I usually get confused when I downloaded a JSON file, finding the correct key or value I want to call in the JSON document. This little tool helps me to visualize the JSON content into a tree struccture.

Usage

Simply type this command in Terminal:

$ python convertToCSV.py [inputFileName].json

The output will shows up in the "output" directory.

Tested with Python 3.4.3.

What else?

You can view the visualized tree by open "/output/tidyjsontree.html", powered by D3.js and the "Tidy Tree" block made by Mike Bostock.

About

A little script that can convert any JSON file to CSV that can be used in D3.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published