timo : /CsvToJson/
mv file.csv CsvToJson/storage
timo : /CsvToJson/
python main.py -i file.csv
timo : /CsvToJson/
python main.py -i file.csv -o output_file.json
timo : /CsvToJson/
id;name;email
1;John Doe;john.doe@gmail.com
2;Max Smith;max.smith@gmail.com
{
[
"id": "1",
"name": "John Doe",
"email": "john.doe@gmail.com"
], [
"id": "2",
"name": "Max Smith",
"email": "max.smith@gmail.com"
]
}
How to use
Follow these steps to use the Python csv to json converter
- Clone the repository from git with:
git clone https://github.com/timof1308/CsvToJson.git
- Place your csv file in the storage directory.
- Run this command to run the script:
python main.py -i your_csv_file.csv
- A new file get created in the /storage directory automatically.
- Alternatively you can specify your output filename with:
python main.py -i your_csv_file.csv -o output.json