Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

python json to csv

import pandas as pd

# enter the json filename to be converted to json
JSON_FILE = 'json_filename.json'

# enter the csv filename you wish to save it as
CSV_FILE = 'csv_filename.csv'

with open(JSON_FILE, encoding = 'utf-8') as f :
	df = pd.read_json(f)
    
df.to_csv(CSV_FILE, encoding = 'utf-8', index = False)
 
PREVIOUS NEXT
Tagged: #python #json #csv
ADD COMMENT
Topic
Name
5+1 =