https://github.com/yakubique/flat-json
Concat all arrays inside JSON array
https://github.com/yakubique/flat-json
flat github-actions json
Last synced: 2 months ago
JSON representation
Concat all arrays inside JSON array
- Host: GitHub
- URL: https://github.com/yakubique/flat-json
- Owner: yakubique
- License: mit
- Created: 2024-03-17T02:39:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-22T07:43:23.000Z (over 2 years ago)
- Last Synced: 2025-03-20T15:17:46.261Z (over 1 year ago)
- Topics: flat, github-actions, json
- Language: TypeScript
- Homepage:
- Size: 193 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Flat JSON
[](./badges/coverage.svg)
[](https://github.com/yakubique/flat-json/actions/workflows/test-myself.yaml)
Concat all arrays inside array and return
[Usage workflow](https://github.com/yakubique/flat-json/actions/workflows/test-myself.yaml)
## Usage
```yaml
- name: Flat JSON
id: list
uses: yakubique/flat-json@v1.1
with:
input: '[[1], [2,3], [4,5], [6]]'
# result: "[1,2,3,4,5,6]"
```
## Inputs
| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
|-----------|--------|----------|-----------|---------------------------|
| input | string | true | | Input JSON string or file |
| from_file | string | false | `"false"` | Load JSON from file |
| to_file | string | false | `"false"` | Save result to file |
## Outputs
| OUTPUT | TYPE | DESCRIPTION |
|--------|--------|-----------------------------------------------------------|
| result | string | Result list in JSON format (or file if `to_file = true`) |
----
[](https://ko-fi.com/S6S1UZ9P7)