Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/civitaspo/embulk-filter-to_json
https://github.com/civitaspo/embulk-filter-to_json
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/civitaspo/embulk-filter-to_json
- Owner: civitaspo
- License: mit
- Created: 2016-01-22T11:29:30.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2021-05-09T22:44:47.000Z (over 3 years ago)
- Last Synced: 2024-05-01T15:28:40.982Z (8 months ago)
- Language: Java
- Homepage:
- Size: 143 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
README
# To Json filter plugin for Embulk
Convert a record to jsonl.
## Overview
* **Plugin type**: filter
## Configuration
- **column**: output json column (optional)
- **name** (string, default: `"json_payload"`)
- **type** string or json (string, default: `"string"`)
- **skip_if_null**: input column name list (array of string, default: `[]`)
- **default_timezone**: option for timestamp column, specify the timezone of timestamp value (string, default is `UTC`)
- **default_format**: option for timestamp column, specify the format of timestamp value (string, default is `%Y-%m-%d %H:%M:%S.%N %z`)## Example
```yaml
filters:
- type: to_json
column:
name: test
type: string
skip_if_null: [id]
default_timezone: Asia/Tokyo
```## Run Example
```
$ ./gradlew classpath
$ embulk run -I lib example/config.yml
```## Build
```
$ ./gradlew gem # -t to watch change of files and rebuild continuously
```