{"id":29821184,"url":"https://github.com/semlabs/json_to_xml","last_synced_at":"2025-07-28T23:41:13.871Z","repository":{"id":57510356,"uuid":"92059180","full_name":"semlabs/json_to_xml","owner":"semlabs","description":"Convert json to xml written in Elixir ","archived":false,"fork":false,"pushed_at":"2017-12-05T13:54:52.000Z","size":18,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T14:56:48.740Z","etag":null,"topics":["converter","elixir","elixir-lang","hex","json","xml"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/semlabs.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":"2017-05-22T13:52:15.000Z","updated_at":"2023-02-09T08:29:34.000Z","dependencies_parsed_at":"2022-09-26T17:50:51.759Z","dependency_job_id":null,"html_url":"https://github.com/semlabs/json_to_xml","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/semlabs/json_to_xml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semlabs%2Fjson_to_xml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semlabs%2Fjson_to_xml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semlabs%2Fjson_to_xml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semlabs%2Fjson_to_xml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semlabs","download_url":"https://codeload.github.com/semlabs/json_to_xml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semlabs%2Fjson_to_xml/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267604846,"owners_count":24114561,"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-28T02:00:09.689Z","response_time":68,"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":["converter","elixir","elixir-lang","hex","json","xml"],"created_at":"2025-07-28T23:41:00.868Z","updated_at":"2025-07-28T23:41:13.867Z","avatar_url":"https://github.com/semlabs.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JsonToXml\n[![Build Status](https://semaphoreci.com/api/v1/semlabs/json_to_xml/branches/master/shields_badge.svg)](https://semaphoreci.com/semlabs/json_to_xml)\n[![Hex.pm](https://img.shields.io/hexpm/v/json_to_xml.svg)](https://hex.pm/packages/json_to_xml)\n[![Hex.pm](https://img.shields.io/hexpm/l/json_to_xml.svg)](https://github.com/semlabs/json_to_xml)\n\nConvert JSON strings to XML.\n\n## Installation\nThe package can be installed by adding `json_to_xml` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [{:json_to_xml, \"~\u003e 0.4.0\"}]\nend\n```\n\n## Usage\n\nAfter adding the dependency you can use the converter like this:\n```elixir\nJsonToXml.convert!(~s({ \"name\": \"John\" }))\n#=\u003e \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003croot\u003e\\n\\t\u003cname\u003eJohn\u003c/name\u003e\\n\u003c/root\u003e\"\n```\n\nTo convert files use `convertFile`:\n```elixir\nJsonToXml.convertFile!(\"/path/to/file\")\n```\n\n## Documentation\n\nThe docs can be found at [https://hexdocs.pm/json_to_xml](https://hexdocs.pm/json_to_xml).\n\n## Known issues\n\n- JSON with empty keys is not supported and leads to an empty XML tag:\nJSON:\n```json\n{\n    \"\": \"content\n}\n```\nXML:\n```xml\n\u003croot\u003e\n    \u003c\u003econtent\u003c/\u003e\n\u003c/root\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemlabs%2Fjson_to_xml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemlabs%2Fjson_to_xml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemlabs%2Fjson_to_xml/lists"}