https://github.com/saltechco/csv2json
Convert CSV to JSON for Python
https://github.com/saltechco/csv2json
converter csv json python python3 saltech
Last synced: 9 months ago
JSON representation
Convert CSV to JSON for Python
- Host: GitHub
- URL: https://github.com/saltechco/csv2json
- Owner: saltechco
- License: mit
- Created: 2023-09-09T17:44:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-17T15:36:57.000Z (over 2 years ago)
- Last Synced: 2025-06-12T14:18:57.383Z (10 months ago)
- Topics: converter, csv, json, python, python3, saltech
- Language: Python
- Homepage: https://pypi.org/project/python-csv2json/
- Size: 36.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python CSV to JSON Converter 
###### based on unicode UTF-8
You can export converted json string to a file when using a csv file
Instructions:
- For import to your project
```
import csv2json as converter
```
- For convert csv to json and export to file
```
converter.csv_2_json_file("YOUR_CSV_FILE_PATH")
```
- For convert csv to json as string:
```
csv = "YOUR_CSV_STRING"
json = converter.csv_2_json(csv)
print(json) # Converted JSON String
```
Minimum Python Version Requirement is **3.7.0**