{"id":34621495,"url":"https://github.com/pgundlach/json2xml","last_synced_at":"2026-04-17T19:02:52.486Z","repository":{"id":137340436,"uuid":"405341996","full_name":"pgundlach/json2xml","owner":"pgundlach","description":"JSON to XML converter","archived":false,"fork":false,"pushed_at":"2021-09-11T13:51:55.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T04:25:15.616Z","etag":null,"topics":["converter","go","golang","json","xml"],"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/pgundlach.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"License.md","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}},"created_at":"2021-09-11T09:52:26.000Z","updated_at":"2021-09-11T13:51:57.000Z","dependencies_parsed_at":"2024-06-20T11:14:48.265Z","dependency_job_id":"eccb9e98-6b05-4dbc-a2ae-6a47e8e330f1","html_url":"https://github.com/pgundlach/json2xml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pgundlach/json2xml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgundlach%2Fjson2xml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgundlach%2Fjson2xml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgundlach%2Fjson2xml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgundlach%2Fjson2xml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgundlach","download_url":"https://codeload.github.com/pgundlach/json2xml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgundlach%2Fjson2xml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31941845,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["converter","go","golang","json","xml"],"created_at":"2025-12-24T15:18:35.832Z","updated_at":"2026-04-17T19:02:52.481Z","avatar_url":"https://github.com/pgundlach.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON to XML\n\nA simple JSON to XML converter written in Go.\n\nUsage:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/pgundlach/json2xml\"\n)\n\nfunc dothings() error {\n\tf, err := os.Open(\"myfile.json\")\n\tif err != nil {\n\t\treturn err\n\t}\n\tstr, err := json2xml.ToXML(f)\n\tif err != nil {\n\t\treturn err\n\t}\n\tfmt.Println(str)\n\treturn nil\n}\n\nfunc main() {\n\terr := dothings()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n}\n```\n\nwhere `myfile.json` is:\n\n```json\n{\n    \"whatever\": [\n        \"foo\",\n        3.45,\n        \"bar\",\n        1\n    ],\n    \"something\": {\n        \"another\": \"object\",\n        \"and an\": [\n            \"array\"\n        ]\n    }\n}\n```\n\nThe (formatted) result is:\n\n```xml\n\u003cdata\u003e\n    \u003cmap\u003e\n        \u003carray key=\"whatever\"\u003e\n            \u003centry\u003efoo\u003c/entry\u003e\n            \u003centry\u003e3.45\u003c/entry\u003e\n            \u003centry\u003ebar\u003c/entry\u003e\n            \u003centry\u003e1\u003c/entry\u003e\n        \u003c/array\u003e\n        \u003cmap key=\"something\"\u003e\n            \u003centry key=\"another\"\u003eobject\u003c/entry\u003e\n            \u003carray key=\"and an\"\u003e\n                \u003centry\u003earray\u003c/entry\u003e\n            \u003c/array\u003e\n        \u003c/map\u003e\n    \u003c/map\u003e\n\u003c/data\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgundlach%2Fjson2xml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgundlach%2Fjson2xml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgundlach%2Fjson2xml/lists"}