https://github.com/javadev/excel-to-json
Command line utility to convert excel files (all of them) to json. Uses Apache POI to convert files.
https://github.com/javadev/excel-to-json
Last synced: 7 months ago
JSON representation
Command line utility to convert excel files (all of them) to json. Uses Apache POI to convert files.
- Host: GitHub
- URL: https://github.com/javadev/excel-to-json
- Owner: javadev
- License: mit
- Created: 2016-10-25T04:43:08.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-11-22T04:58:34.000Z (7 months ago)
- Last Synced: 2024-11-22T05:27:06.688Z (7 months ago)
- Language: Java
- Homepage:
- Size: 9.73 MB
- Stars: 7
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# excel-to-json
[](https://github.com/javadev/excel-to-json/actions/workflows/maven.yml)### Excel to JSON Converter
This application converts Excel files into JSON format. It provides flexibility in formatting dates, parsing percent values, including rows with no data, rendering output as pretty formatted JSON, and filling columns with null values.
#### Usage
```
java -jar excel-to-json.jar [-s ] [-df ] [--help] [--percent] [--empty] [--pretty] [--fillColumns]
```#### Options
- `-s, --source `: The source file path to convert into JSON.
- `-df, --dateFormat `: The template to use for formatting dates into strings.
- `-?, --help`: Display this help text.
- `--percent`: Parse percent values as floats.
- `--empty`: Include rows with no data.
- `--pretty`: Render output as pretty formatted JSON.
- `--fillColumns`: Fill rows with null values until they all have the same size.#### Example
```sh
java -jar excel-to-json.jar -s input.xlsx --pretty
```This command converts the `input.xlsx` Excel file into pretty formatted JSON.