An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Python CSV to JSON Converter ![Python](https://img.shields.io/static/v1?label=Python&message=3.11.0&color=important)
###### 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**