{"id":15468421,"url":"https://github.com/winebarrel/json2hcl","last_synced_at":"2025-07-24T13:11:09.391Z","repository":{"id":230668565,"uuid":"779912992","full_name":"winebarrel/json2hcl","owner":"winebarrel","description":"A tool to convert JSON to HCL.","archived":false,"fork":false,"pushed_at":"2025-07-07T19:00:44.000Z","size":80,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-07T20:29:11.384Z","etag":null,"topics":["golang","hcl","json"],"latest_commit_sha":null,"homepage":"","language":"HCL","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/winebarrel.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-03-31T06:06:42.000Z","updated_at":"2025-07-07T19:00:48.000Z","dependencies_parsed_at":"2024-03-31T07:22:38.763Z","dependency_job_id":"8f4e414e-4a80-4b43-b001-67c305045746","html_url":"https://github.com/winebarrel/json2hcl","commit_stats":null,"previous_names":["winebarrel/json2hcl"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/winebarrel/json2hcl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fjson2hcl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fjson2hcl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fjson2hcl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fjson2hcl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/winebarrel","download_url":"https://codeload.github.com/winebarrel/json2hcl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fjson2hcl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266845403,"owners_count":23994062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"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":["golang","hcl","json"],"created_at":"2024-10-02T01:41:00.774Z","updated_at":"2025-07-24T13:11:09.368Z","avatar_url":"https://github.com/winebarrel.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json2hcl\n\n[![CI](https://github.com/winebarrel/json2hcl/actions/workflows/ci.yml/badge.svg)](https://github.com/winebarrel/json2hcl/actions/workflows/ci.yml)\n\nA tool to convert JSON to HCL.\n\n### Usage\n\n## Installation\n\n```sh\nbrew install winebarrel/json2hcl/json2hcl\n```\n\n## Usage\n\n```go\nUsage: json2hcl [OPTION] [FILE]\n  -version\n    \tprint version and exit\n```\n\n```sh\n$ cat policy.json\n{\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [\n        {\n            \"Effect\": \"Allow\",\n            \"Action\": \"service-prefix:action-name\",\n            \"Resource\": \"*\",\n            \"Condition\": {\n                \"DateGreaterThan\": {\"aws:CurrentTime\": \"2020-04-01T00:00:00Z\"},\n                \"DateLessThan\": {\"aws:CurrentTime\": \"2020-06-30T23:59:59Z\"}\n            }\n        }\n    ]\n}\n\n$ json2hcl policy.json # or `cat policy.json | json2hcl`\n{\n  Statement = [{\n    Action = \"service-prefix:action-name\"\n    Condition = {\n      DateGreaterThan = {\n        \"aws:CurrentTime\" = \"2020-04-01T00:00:00Z\"\n      }\n      DateLessThan = {\n        \"aws:CurrentTime\" = \"2020-06-30T23:59:59Z\"\n      }\n    }\n    Effect   = \"Allow\"\n    Resource = \"*\"\n  }]\n  Version = \"2012-10-17\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinebarrel%2Fjson2hcl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinebarrel%2Fjson2hcl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinebarrel%2Fjson2hcl/lists"}