https://github.com/yuhexiong/json-to-csv-groovy
https://github.com/yuhexiong/json-to-csv-groovy
groovy
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yuhexiong/json-to-csv-groovy
- Owner: yuhexiong
- Created: 2024-12-13T08:11:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-08T08:38:44.000Z (about 1 year ago)
- Last Synced: 2025-02-13T01:51:19.424Z (about 1 year ago)
- Topics: groovy
- Language: Groovy
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-CH.md
Awesome Lists containing this project
README
# Json To CSV
讀取 JSON 文件,並將鍵和值轉換為欄位和對應的數值,然後匯出為 CSV 文件。
## Overview
- 語言: Groovy v4.0.24
## Run
編輯代碼中的 `jsonFilPath` 和 `csvFIlePath`。
同時提供範例 JSON 文件。
```bash
groovy JsonToCsv.groovy
```