{"id":50194663,"url":"https://github.com/benlei/json2outputs","last_synced_at":"2026-05-25T16:35:07.900Z","repository":{"id":358587280,"uuid":"861349013","full_name":"benlei/json2outputs","owner":"benlei","description":"This action will read in a JSON body / file and set them as outputs","archived":false,"fork":false,"pushed_at":"2026-05-18T03:30:46.000Z","size":877,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-18T05:42:05.087Z","etag":null,"topics":["github-actions","json","workflows"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benlei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-22T16:53:43.000Z","updated_at":"2026-05-18T03:30:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/benlei/json2outputs","commit_stats":null,"previous_names":["benlei/json2outputs"],"tags_count":11,"template":false,"template_full_name":"actions/typescript-action","purl":"pkg:github/benlei/json2outputs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benlei%2Fjson2outputs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benlei%2Fjson2outputs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benlei%2Fjson2outputs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benlei%2Fjson2outputs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benlei","download_url":"https://codeload.github.com/benlei/json2outputs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benlei%2Fjson2outputs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33484312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T14:31:05.219Z","status":"ssl_error","status_checked_at":"2026-05-25T14:31:02.878Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions","json","workflows"],"created_at":"2026-05-25T16:35:07.201Z","updated_at":"2026-05-25T16:35:07.892Z","avatar_url":"https://github.com/benlei.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# benlei/json2outputs\n\n![CI](https://github.com/benlei/json2outputs/actions/workflows/ci.yml/badge.svg)\n[![Check dist/](https://github.com/benlei/json2outputs/actions/workflows/check-dist.yml/badge.svg)](https://github.com/benlei/json2outputs/actions/workflows/check-dist.yml)\n[![CodeQL](https://github.com/benlei/json2outputs/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/benlei/json2outputs/actions/workflows/codeql-analysis.yml)\n[![Coverage](./badges/coverage.svg)](./badges/coverage.svg)\n\nReads in a `json` input (or `file` input) and tries to output its values in dot\nnotation. Note that if the json/file is a primitive/missing/has errors, nothing\nwill be output.\n\nFor example given the JSON:\n\n```json\n{\n  \"foo\": {\n    \"bar\": [1, 2, 3]\n  },\n  \"hello\": {\n    \"world\": \"abc\",\n    \"example.com/foobar\": \"bye\",\n    \"yes\": true,\n    \"no\": false\n  }\n}\n```\n\nShould output the following:\n\n- `steps.my-id.outputs['foo.bar[0]'] = '1'`\n- `steps.my-id.outputs['foo.bar[1]'] = '2'`\n- `steps.my-id.outputs['foo.bar[2]'] = '3'`\n- `steps.my-id.outputs['hello.world'] = 'abc'`\n- `steps.my-id.outputs['hello[\"example.com/foobar\"]'] = 'bye'`\n- `steps.my-id.outputs['hello.yes'] = 'true'`\n- `steps.my-id.outputs['hello.no'] = 'false'`\n\n## Inputs\n\n\u003c!-- markdownlint-disable MD013 --\u003e\n\n| Input Name | Required | Default | Description                                                      |\n| ---------- | -------- | ------- | ---------------------------------------------------------------- |\n| `json`     | no       | `''`    | The JSON body (string) to parse                                  |\n| `file`     | no       | `''`    | The JSON file to parse. Ignored if `json` has a non-empty value. |\n\n\u003c!-- markdownlint-enable MD013 --\u003e\n\n## Outputs\n\nVaries depending on inputs.\n\n## Examples\n\n### Passing in a raw JSON body\n\n```yaml\n- name: Test\n  id: json\n  uses: benlei/json2outputs@v1\n  with:\n    json: |\n      {\n        \"foo\": {\n          \"bar\": [1, 2, 3]\n        },\n        \"hello\": {\n          \"world\": \"abc\",\n          \"example.com/foobar\": \"bye\",\n          \"yes\": true,\n          \"no\": false\n        }\n      }\n\n- name: Output value:\n  run: |\n    echo ${{ steps.json.outputs['hello[\"example.com/foobar\"]'] }}\n```\n\n### Passing in a JSON file\n\n```yaml\n- name: Test\n  id: json\n  uses: benlei/json2outputs@v1\n  with:\n    file: ./some.json\n\n- name: Output value:\n  run: |\n    echo ${{ steps.json.outputs['hello[\"example.com/foobar\"]'] }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenlei%2Fjson2outputs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenlei%2Fjson2outputs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenlei%2Fjson2outputs/lists"}