Make JSON array flat
Version updated for yakubique/flat-json to version v1.1.
- This action is used across all versions by ? repositories.
Go to the GitHub Marketplace to find the latest changes.
Release notes
Full Changelog: https://github.com/yakubique/flat-json/compare/v1...v1.1
Flat JSON
Concat all arrays inside array and return
Usage
- 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 ) |