- Download the repository as a .zip or git clone into into a local repository (
git clone https://github.com/TID-Lab/json2csv-aggie.git
)
-
cd
to the location where you downloaded/cloned the repository -
IMPORTANT: Open
json_to.csv.py
and change theCSV_HEADER_ROW
to match the headers you want to output in CSV -
Run
$ python json_to_csv -i <INPUTFILE> o- <OUTPUTFILE>
where INPUTFILE is the JSON file you want to convert and OUTPUTFILE is the csv you want to save to.