Amazing-Python-Scripts/CSVtoJSON script at main · witsoft001/Amazing-Python-Scripts · GitHub
Skip to content

Latest commit

 

History

History
 
 

Folders and files

readme.md

CSV to JSON converter script

Input

  • Create an input.csv file with top row containing column names and rows below that as contents under corresponding columns. Each column should be comma-separated.
  • Create an empty output.json file.
  • Edit the file path defined by the variables csv_file and json_file and run the script.

    Output

  • output.json file will contain the data of input.csv file in json format.

    Author(s)

    Prerna Mittal