{"id":13508433,"url":"https://github.com/meh/jazz","last_synced_at":"2025-08-21T02:31:02.580Z","repository":{"id":9503004,"uuid":"11396633","full_name":"meh/jazz","owner":"meh","description":"Yet another library to handle JSON in Elixir.","archived":false,"fork":false,"pushed_at":"2018-07-10T17:25:37.000Z","size":80,"stargazers_count":60,"open_issues_count":2,"forks_count":21,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-08-02T06:24:33.475Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"apache/xmlbeans","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-14T01:16:24.000Z","updated_at":"2024-12-11T22:03:43.000Z","dependencies_parsed_at":"2022-09-08T06:20:26.683Z","dependency_job_id":null,"html_url":"https://github.com/meh/jazz","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/meh/jazz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meh%2Fjazz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meh%2Fjazz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meh%2Fjazz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meh%2Fjazz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meh","download_url":"https://codeload.github.com/meh/jazz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meh%2Fjazz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271416729,"owners_count":24755940,"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-08-21T02:00:08.990Z","response_time":74,"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":[],"created_at":"2024-08-01T02:00:53.006Z","updated_at":"2025-08-21T02:31:02.329Z","avatar_url":"https://github.com/meh.png","language":"Elixir","funding_links":[],"categories":["JSON"],"sub_categories":[],"readme":"jazz - JSON handling library for Elixir\n=======================================\nJazz is a JSON handling library written in Elixir, for Elixir.\n\nExamples\n--------\n\n```elixir\nuse Jazz\n\nJSON.encode!(%{name: \"David\", surname: \"Davidson\"})\n  |\u003e IO.puts # =\u003e {\"name\":\"David\",\"surname\":\"Davidson\"}\n\nJSON.decode!(~S/{\"name\":\"David\",\"surname\":\"Davidson\"}/)\n  |\u003e IO.inspect # =\u003e %{\"name\" =\u003e \"David\", \"surname\" =\u003e \"Davidson\"}\n\nJSON.decode!(~S/{\"name\":\"David\",\"surname\":\"Davidson\"}/, keys: :atoms)\n  |\u003e IO.inspect # =\u003e %{name: \"David\", surname: \"Davidson\"}\n\n# would raise if the keys weren't already existing atoms\nJSON.decode!(~S/{\"name\":\"David\",\"surname\":\"Davidson\"}/, keys: :atoms!)\n  |\u003e IO.inspect # =\u003e %{name: \"David\", surname: \"Davidson\"}\n\ndefmodule Person do\n  defstruct name: nil, surname: nil\nend\n\nJSON.encode!(%Person{name: \"David\", surname: \"Davidson\"})\n  |\u003e IO.puts # =\u003e {\"name\":\"David\",\"surname\":\"Davidson\"}\n\nJSON.decode!(~S/{\"name\":\"David\",\"surname\":\"Davidson\"}/, as: Person)\n  |\u003e IO.inspect # =\u003e %Person{name: \"David\", surname: \"Davidson\"}\n\ndefimpl JSON.Encoder, for: HashDict do\n  def encode(self, options) do\n    HashDict.to_list(self) |\u003e Enum.into(%{})\n  end\nend\n\ndefimpl JSON.Decoder, for: HashDict do\n  def decode(_new, parsed, _options) do\n    parsed |\u003e Enum.into(HashDict.new)\n  end\nend\n\nJSON.encode!(HashDict.new([name: \"David\", surname: \"Davidson\"]))\n  |\u003e IO.puts # =\u003e {\"name\":\"David\",\"surname\":\"Davidson\"}\n\nJSON.decode!(~S/{\"name\":\"David\",\"surname\":\"Davidson\"}/, as: HashDict)\n  |\u003e IO.inspect # =\u003e #HashDict\u003c[{\"name\", \"David\" }, { \"surname\", \"Davidson\" }]\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeh%2Fjazz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeh%2Fjazz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeh%2Fjazz/lists"}