https://github.com/fraidev/csv-json-sm
SmartModule that converts CSV records to JSON records
https://github.com/fraidev/csv-json-sm
Last synced: about 2 months ago
JSON representation
SmartModule that converts CSV records to JSON records
- Host: GitHub
- URL: https://github.com/fraidev/csv-json-sm
- Owner: fraidev
- Created: 2024-02-03T20:56:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-04T16:28:49.000Z (over 1 year ago)
- Last Synced: 2025-02-12T14:29:00.079Z (3 months ago)
- Language: Rust
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CSV to JSON Smartmodule
This smartmodule converts CSV records to JSON records.
You can test this smartmodule with the following steps:
```bash
$ fluvio cluster start
$ smdk build
$ smdk load
$ fluvio topic create csv-json-topic
$ fluvio consume csv-json-topic --smartmodule=csv-json-sm -e delimiter=";" -e header_case=snake
```In another terminal:
```bash
$ fluvio produce csv-json-topic -f ./test-data/input.csv --raw
```# Params
- `delimiter`: The delimiter used in the CSV file. Default is `,`.
- `header_case`: The case of the header. Default is `none`. Possible values are `snake`, `camel`, `none`.