{"id":13508441,"url":"https://github.com/cblage/elixir-json","last_synced_at":"2025-05-16T14:06:03.114Z","repository":{"id":55412480,"uuid":"11328616","full_name":"cblage/elixir-json","owner":"cblage","description":"Native JSON library for Elixir","archived":false,"fork":false,"pushed_at":"2021-01-01T20:29:02.000Z","size":41432,"stargazers_count":219,"open_issues_count":0,"forks_count":40,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-04-09T17:19:14.846Z","etag":null,"topics":["decoding","elixir","elixir-json","encoding","hex","json","native"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/json","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cblage.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":"2013-07-11T00:38:05.000Z","updated_at":"2023-11-09T21:38:37.000Z","dependencies_parsed_at":"2022-08-14T23:50:21.378Z","dependency_job_id":null,"html_url":"https://github.com/cblage/elixir-json","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cblage%2Felixir-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cblage%2Felixir-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cblage%2Felixir-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cblage%2Felixir-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cblage","download_url":"https://codeload.github.com/cblage/elixir-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248546300,"owners_count":21122287,"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":["decoding","elixir","elixir-json","encoding","hex","json","native"],"created_at":"2024-08-01T02:00:53.094Z","updated_at":"2025-04-12T09:33:31.561Z","avatar_url":"https://github.com/cblage.png","language":"Elixir","readme":"# [Elixir JSON](https://hex.pm/packages/json)\n\n[![Build Status](https://travis-ci.org/cblage/elixir-json.svg?branch=master)](https://travis-ci.org/cblage/elixir-json) [![Hex.pm](https://img.shields.io/hexpm/dt/json.svg?style=flat-square)](https://hex.pm/packages/json) [![Coverage Status](https://coveralls.io/repos/github/cblage/elixir-json/badge.svg?branch=master)](https://coveralls.io/github/cblage/elixir-json?branch=master) [![Inline docs](http://inch-ci.org/github/cblage/elixir-json.svg)](http://inch-ci.org/github/cblage/elixir-json)\n                                                                                                                                     \nThis library provides a natively implemented JSON encoder and decoder for Elixir.\n\nYou can find the package in [hex.pm](https://hex.pm/packages/json) and the documentation in [hexdocs.pm](https://hexdocs.pm/json/readme.html).\n\nAll contributions are welcome!\n\n# Installing\n\nSimply add ```{:json, \"~\u003e 1.4\"}``` to your project's ```mix.exs``` and run ```mix deps.get```.\n\n# Usage\n\nEncoding an Elixir type\n```elixir\n  @doc \"\n\tJSON encode an Elixir list\n  \"\t\n  list = [key: \"this will be a value\"]\n  is_list(list)\n  # true\n  list[:key]\n  # \"this will be a value\"\n  {status, result} = JSON.encode(list)\n  # {:ok, \"{\\\"key\\\":\\\"this will be a value\\\"}\"}\n  String.length(result)\n  # 41\n```\n\nDecoding a list from a string that contains JSON\n```elixir\n  @doc \"\n\tJSON decode a string into an Elixir list\n  \"\n  json_input = \"{\\\"key\\\":\\\"this will be a value\\\"}\"\n  {status, list} = JSON.decode(json_input)\n\t{:ok, %{\"key\" =\u003e \"this will be a value\"}}\n  list[:key]\n  # nil\n  list[\"key\"]\n  # \"this will be a value\"\n```\n\nAt any time, you can turn on verbose logging for this library only. \nTo do so, head to config file of your application and add below lines:\n\n```elixir\nuse Mix.Config\n\nconfig :logger, level: :debug\n\nconfig :json, log_level: :debug\n```\n\nNote that, changing only `:logger` level to `:info`, `:warn` or `:error` will silent `:json` too.\n\n# License\nThe Elixir JSON library is available under the [BSD 3-Clause aka \"BSD New\" license](http://www.tldrlegal.com/l/BSD3)\n","funding_links":[],"categories":["JSON"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcblage%2Felixir-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcblage%2Felixir-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcblage%2Felixir-json/lists"}