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

  1. Clone the repository from git with:
    git clone https://github.com/timof1308/CsvToJson.git
  2. Place your csv file in the storage directory.
  3. Run this command to run the script:
    python main.py -i your_csv_file.csv
  4. A new file get created in the /storage directory automatically.
  5. Alternatively you can specify your output filename with:
    python main.py -i your_csv_file.csv -o output.json