https://github.com/sincerelyfaust/csv_to_json
A Dart script that generates a JSON file for each column inside the CSV file.
https://github.com/sincerelyfaust/csv_to_json
Last synced: 10 months ago
JSON representation
A Dart script that generates a JSON file for each column inside the CSV file.
- Host: GitHub
- URL: https://github.com/sincerelyfaust/csv_to_json
- Owner: SincerelyFaust
- License: mit
- Created: 2024-06-16T14:25:23.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-16T14:53:14.000Z (about 2 years ago)
- Last Synced: 2025-03-19T11:57:23.851Z (over 1 year ago)
- Language: Dart
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# csv_to_json
A Dart script that generates a JSON file for each column inside the CSV file.
## Usage
```sh
dart run lib/csv_to_json.dart -i example/example_file.csv -o example
```
## Example
### Input CSV file
```csv
str,hr,en
helloWorld,Pozdrav svijete,Hello world
newText,Novi tekst,New text
```
### Output
- en.json
```json
{
"helloWorld": "Hello world",
"newText": "New text"
}
```
- hr.json
```json
{
"helloWorld": "Pozdrav svijete",
"newText": "Novi tekst"
}
```