{"id":20434392,"url":"https://github.com/centralnicgroup-opensource/venom","last_synced_at":"2026-05-12T19:13:57.357Z","repository":{"id":96375313,"uuid":"66122664","full_name":"centralnicgroup-opensource/venom","owner":"centralnicgroup-opensource","description":"An Elixir JSON encoder that wraps around poison, allowing round tripping of Elixir data types.","archived":false,"fork":false,"pushed_at":"2016-08-22T01:21:14.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-15T19:25:21.037Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/centralnicgroup-opensource.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}},"created_at":"2016-08-20T01:48:32.000Z","updated_at":"2023-01-26T15:27:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"47e1a808-6640-425e-8cdf-d037e89b0cca","html_url":"https://github.com/centralnicgroup-opensource/venom","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centralnicgroup-opensource%2Fvenom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centralnicgroup-opensource%2Fvenom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centralnicgroup-opensource%2Fvenom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centralnicgroup-opensource%2Fvenom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/centralnicgroup-opensource","download_url":"https://codeload.github.com/centralnicgroup-opensource/venom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241976990,"owners_count":20051755,"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","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":[],"created_at":"2024-11-15T08:26:22.458Z","updated_at":"2026-05-12T19:13:57.309Z","avatar_url":"https://github.com/centralnicgroup-opensource.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Venom\n\nAn Elixir JSON encoder that wraps around poison, allowing round tripping of Elixir data types.\n\n\n## Descriptions\n\nSome of Elixir's native types can't be converted into JSON (and back into Elixir again). This libarary uses [poison](https://github.com/devinus/poison) under the hood to create JSON, but modifies these non convertable types into a JSON-represenation.\n\n\n## Usage\n\n    data = {:tuples, :and, :atoms, :cant, :be :represented, :in, :json}\n    json = Venom.encode(data)\n    IO.inspect Venom.decode(json)\n    # returns: {:tuples, :and, :atoms, :cant, :be :represented, :in, :json}\n\nVenom implements all of the [poison JSON conversion functions](https://hexdocs.pm/poison/Poison.html), but wrapped with code to handle special data types.\n\n\n## Encoding Details\n\nThe following Elixir types that aren't valid in JSON are converted.\n\n* tuples: `{\"1\", 2}` -\u003e `[\"!tuple\", \"1\", 2]`\n* atoms:  `:a` -\u003e `\":a\"`\n\nOther conversions prevent injection of special types:\n\n* tuples: `[\"!tuple\", 1]` -\u003e `[\"!tuple!\", 1]`\n* atoms:  `\":a\"` -\u003e `\"::a\"`\n\nThis list of converted values will probably grow over time.\n\n\n## Missing Conversions\n\nNon utf8 strings are not yet converted. There may be other things that need conversion; if you find something please raise an issue here.\n\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed as:\n\n  1. Add `venom` to your list of dependencies in `mix.exs`:\n\n    ```elixir\n    def deps do\n      [{:venom, git: \"git@github.com:iwantmyname/venom\"}]\n    end\n    ```\n\n  2. Ensure `venom` is started before your application:\n\n    ```elixir\n    def application do\n      [applications: [:venom]]\n    end\n    ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcentralnicgroup-opensource%2Fvenom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcentralnicgroup-opensource%2Fvenom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcentralnicgroup-opensource%2Fvenom/lists"}