{"id":37214172,"url":"https://github.com/hxhieu/json-to-env","last_synced_at":"2026-01-15T00:47:06.936Z","repository":{"id":44929510,"uuid":"449133823","full_name":"hxhieu/json-to-env","owner":"hxhieu","description":"CLI tool to convert the JSON format to .env format","archived":false,"fork":false,"pushed_at":"2022-01-18T05:51:18.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-14T14:43:34.448Z","etag":null,"topics":["appsettings","appsettings-json","appsettingsjson","asp-net-core","aspnetcore","env","environment","environment-variables","go","golang","json"],"latest_commit_sha":null,"homepage":"","language":"Go","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/hxhieu.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}},"created_at":"2022-01-18T04:00:19.000Z","updated_at":"2022-01-18T04:37:43.000Z","dependencies_parsed_at":"2022-09-26T20:30:56.006Z","dependency_job_id":null,"html_url":"https://github.com/hxhieu/json-to-env","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hxhieu/json-to-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxhieu%2Fjson-to-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxhieu%2Fjson-to-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxhieu%2Fjson-to-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxhieu%2Fjson-to-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hxhieu","download_url":"https://codeload.github.com/hxhieu/json-to-env/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxhieu%2Fjson-to-env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28440342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:34:46.850Z","status":"ssl_error","status_checked_at":"2026-01-15T00:34:46.551Z","response_time":107,"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":["appsettings","appsettings-json","appsettingsjson","asp-net-core","aspnetcore","env","environment","environment-variables","go","golang","json"],"created_at":"2026-01-15T00:47:06.245Z","updated_at":"2026-01-15T00:47:06.928Z","avatar_url":"https://github.com/hxhieu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Download\n\nDownload from the [Releases](https://github.com/hxhieu/json-to-env/releases/latest)\n\nOR\n\n```\ngo install github.com/hxhieu/json-to-env@latest\n```\n\n\n# Usage\n\n```\nConvert the JSON format to .env format\n\nUsage:\n  json-to-env [flags]\n\nFlags:\n  -h, --help               help for json-to-env\n  -o, --output string      The output file (default \".env\")\n  -s, --separator string   The nested fields separator (default \"__\")\n```\n\n# Example\n\n```\n// appsettings.json\n\n{\n  \"Logging\": {\n    \"LogLevel\": {\n      \"Default\": \"Debug\",\n      \"Microsoft\": \"Information\",\n      \"System\": \"Information\",\n      \"Microsoft.EntityFrameworkCore.Database.Command\": \"Warning\"\n    },\n    \"UseDeveloperExceptionPage\": \"true\"\n  }\n}\n\n```\n\nOutput as \n\n```\n# .env\n\nLogging__UseDeveloperExceptionPage=\"true\"\nLogging__LogLevel__Default=\"Debug\"\nLogging__LogLevel__Microsoft=\"Information\"\nLogging__LogLevel__System=\"Information\"\nLogging__LogLevel__Microsoft_EntityFrameworkCore_Database_Command=\"Warning\"\n```\n\n# Known issues\n- JSON unmarshall fields ordering are not preserved\n- JSON comments `//` and `/* */` are not supported so remove them in prior\n- `:` as separator will cause weird output","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhxhieu%2Fjson-to-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhxhieu%2Fjson-to-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhxhieu%2Fjson-to-env/lists"}