{"id":21697872,"url":"https://github.com/yakubique/filter-json","last_synced_at":"2026-04-20T03:03:09.743Z","repository":{"id":219548842,"uuid":"749312188","full_name":"yakubique/filter-json","owner":"yakubique","description":"Github Action to filter value inside JSON","archived":false,"fork":false,"pushed_at":"2024-03-22T08:27:11.000Z","size":213,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-05T20:05:57.339Z","etag":null,"topics":["github-actions","json","processing"],"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/yakubique.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"ko_fi":"opa_oz"}},"created_at":"2024-01-28T07:41:47.000Z","updated_at":"2024-10-09T08:42:31.000Z","dependencies_parsed_at":"2024-01-28T09:23:03.554Z","dependency_job_id":"368290c7-d63f-4f85-8e58-0ab043590eb6","html_url":"https://github.com/yakubique/filter-json","commit_stats":null,"previous_names":["yakubique/filter-json"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/yakubique/filter-json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakubique%2Ffilter-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakubique%2Ffilter-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakubique%2Ffilter-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakubique%2Ffilter-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yakubique","download_url":"https://codeload.github.com/yakubique/filter-json/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakubique%2Ffilter-json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32031070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","processing"],"created_at":"2024-11-25T19:29:51.324Z","updated_at":"2026-04-20T03:03:09.728Z","avatar_url":"https://github.com/yakubique.png","language":"TypeScript","funding_links":["https://ko-fi.com/opa_oz","https://ko-fi.com/S6S1UZ9P7"],"categories":[],"sub_categories":[],"readme":"# filter-json\n\n[![Coverage](./badges/coverage.svg)](./badges/coverage.svg)\n\nGitHub Action filters JSON values based on predefined criteria, extracting and retaining desired values.\n\n## Usage\n\nFor live examples, please see [actions](https://github.com/yakubique/filter-json/actions/workflows/test-myself.yaml)\n\n```yaml\nuses: yakubique/filter-json@v1.2\nwith:\n  input: '[\"1.0.0\",\"1.1.0\",\"1.2.0\",\"1.2.1\",\"1.3.0\"]'\n  values: \"1.0.0\"\n\n# result: '[\"1.1.0\",\"1.2.0\",\"1.2.1\",\"1.3.0\"]'\n```\n\n## With multiple values\n\n```yaml\nuses: yakubique/filter-json@v1.2\nwith:\n  input: '[\"1.0.0\",\"1.1.0\",\"1.2.0\",\"1.2.1\",\"1.3.0\"]'\n  values: '1.0.0,1.1.0'\n\n# result: \"[\"1.2.0\",\"1.2.1\",\"1.3.0\"]\"\n```\n\n## With nested json\n\n```yaml\nuses: yakubique/filter-json@v1.2\nwith:\n  input: '[{\"name\":\"v0.3.26\",\"tag_name\":\"v0.3.26\",\"prerelease\":false,\"published_at\":\"2023-08-07T09:43:28Z\"},{\"name\":\"v0.3.22\",\"tag_name\":\"v0.3.22\",\"prerelease\":false,\"published_at\":\"2023-11-12T10:58:00Z\"},{\"name\":\"v0.3.23\",\"tag_name\":\"v0.3.23\",\"prerelease\":false,\"published_at\":\"2023-11-12T10:59:27Z\"},{\"name\":\"v0.3.25\",\"tag_name\":\"v0.3.25\",\"prerelease\":false,\"published_at\":\"2023-11-12T11:01:20Z\"},{\"name\":\"v0.3.31\",\"tag_name\":\"v0.3.31\",\"prerelease\":false,\"published_at\":\"2023-11-12T11:17:17Z\"},{\"name\":\"v0.3.34\",\"tag_name\":\"v0.3.34\",\"prerelease\":false,\"published_at\":\"2023-11-12T11:21:59Z\"}]'\n  type: \"nested-json\"\n  key: \"name\"\n  values: 'v0.3.22,v0.3.34'\n\n# result: \"[{\"name\":\"The name is:v0.3.26.\",\"tag_name\":\"v0.3.26\",\"prerelease\":false,\"published_at\":\"2023-08-07T09:43:28Z\"},{\"name\":\"The name is:v0.3.23.\",\"tag_name\":\"v0.3.23\",\"prerelease\":false,\"published_at\":\"2023-11-12T10:59:27Z\"},{\"name\":\"The name is:v0.3.25.\",\"tag_name\":\"v0.3.25\",\"prerelease\":false,\"published_at\":\"2023-11-12T11:01:20Z\"},{\"name\":\"The name is:v0.3.31.\",\"tag_name\":\"v0.3.31\",\"prerelease\":false,\"published_at\":\"2023-11-12T11:17:17Z\"}]\"\n```\n\n## Use output\n\n```yaml\nsteps:\n  - name: Checkout\n    uses: actions/checkout@v4\n  - name: Filter JSON\n    id: filter_single_value\n    uses: yakubique/filter-json@v1.2\n    with:\n      input: '[\"1.0.0\",\"1.1.0\",\"1.2.0\",\"1.2.1\",\"1.3.0\"]'\n      values: \"1.0.0\"\n  - name: Echo output\n    run: |\n      echo \"${{ steps.filter_single_value.outputs.result }}\"\n```\n\n## Inputs\n\n\u003c!-- AUTO-DOC-INPUT:START - Do not remove or modify this section --\u003e\n\n| INPUT     | TYPE   | REQUIRED | DEFAULT       | DESCRIPTION                                                              |\n|-----------|--------|----------|---------------|--------------------------------------------------------------------------|\n| input     | string | true     |               | JSON to filter                                                           |\n| type      | string | false    | `\"flat-json\"` | Type of input data `[\"flat-json\", \"nested-json\"]` (default: \"flat-json\") |\n| key       | string | false    |               | If `type=\"nested-json\"` - which key should \u003cbr\u003ebe used                   |\n| values    | string | true     |               | Values to filter from JSON, comma \u003cbr\u003eseparated                          |\n| from_file | string | false    | `\"false\"`     | Get JSON from file                                                       |\n| to_file   | string | false    |               | Output to JSON file                                                      |\n\n\u003c!-- AUTO-DOC-INPUT:END --\u003e\n\n## Outputs\n\n\u003c!-- AUTO-DOC-OUTPUT:START - Do not remove or modify this section --\u003e\n\n| OUTPUT | TYPE   | DESCRIPTION                                                        |\n|--------|--------|--------------------------------------------------------------------|\n| result | string | Input JSON minus `values` (JSON or filepath, depends on `to_file`) |\n\n\u003c!-- AUTO-DOC-OUTPUT:END --\u003e\n\n\n----\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/S6S1UZ9P7)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyakubique%2Ffilter-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyakubique%2Ffilter-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyakubique%2Ffilter-json/lists"}