1import pandas as pd
2df = pd.read_csv (r'Path where the CSV file is saved\File Name.csv')
3df.to_json (r'Path where the new JSON file will be stored\New File Name.json')
4
1# call csvkit (which is a Python tool) to convert json to csv:
2# https://csvkit.readthedocs.io/en/latest/
3
4in2csv data.json > data.csv
1python -c "import csv,json;print json.dumps(list(csv.reader(open('csv_file.csv'))))"
2