{"id":16691301,"url":"https://github.com/gr1n/json-ext-encoder","last_synced_at":"2025-07-15T20:47:52.712Z","repository":{"id":62572839,"uuid":"133826172","full_name":"Gr1N/json-ext-encoder","owner":"Gr1N","description":"Extended JSON encoder for Python data structures","archived":false,"fork":false,"pushed_at":"2018-11-23T13:45:47.000Z","size":20,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-14T18:17:50.521Z","etag":null,"topics":["encoder","json","serialization"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/json-ext-encoder/","language":"Python","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/Gr1N.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-05-17T14:35:11.000Z","updated_at":"2023-09-30T21:47:35.000Z","dependencies_parsed_at":"2022-11-03T17:15:35.252Z","dependency_job_id":null,"html_url":"https://github.com/Gr1N/json-ext-encoder","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Gr1N/json-ext-encoder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gr1N%2Fjson-ext-encoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gr1N%2Fjson-ext-encoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gr1N%2Fjson-ext-encoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gr1N%2Fjson-ext-encoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gr1N","download_url":"https://codeload.github.com/Gr1N/json-ext-encoder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gr1N%2Fjson-ext-encoder/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265458578,"owners_count":23769180,"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":["encoder","json","serialization"],"created_at":"2024-10-12T16:07:46.360Z","updated_at":"2025-07-15T20:47:52.652Z","avatar_url":"https://github.com/Gr1N.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-ext-encoder [![Build Status](https://travis-ci.org/Gr1N/json-ext-encoder.svg?branch=master)](https://travis-ci.org/Gr1N/json-ext-encoder) [![codecov](https://codecov.io/gh/Gr1N/json-ext-encoder/branch/master/graph/badge.svg)](https://codecov.io/gh/Gr1N/json-ext-encoder) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n\nExtended JSON encoder for Python data structures.\n\nA subclass of [JSONEncoder](https://docs.python.org/3/library/json.html#json.JSONEncoder), it handles these additional types:\n\n- `datetime.datetime` — a string of the form `YYYY-MM-DDTHH:mm:ss.sssZ` or `YYYY-MM-DDTHH:mm:ss.sss+HH:MM` as defined in [ECMA-262](https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.15).\n- `datetime.date` — a string of the form `YYYY-MM-DD` as defined in [ECMA-262](https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.15).\n- `datetime.time` — a string of the form `HH:MM:ss.sss` as defined in [ECMA-262](https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.15).\n- `datetime.timedelta` - a string representing a duration as defined in [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html). For example, `timedelta(days=1, hours=2, seconds=3.4)` is represented as `P1DT02H00M03.400000S`.\n- `decimal.Decimal`, `uuid.UUID` — a string representation of the object.\n- `enum.Enum` — a `.value` property of enum member.\n\n## Installation\n\n    $ pip install json-ext-encoder\n\n## Usage\n\n    import json\n    from json_ext_encoder import JSONEncoder\n\n    json.dumps({...}, cls=JSONEncoder)\n\n## Contributing\n\nTo work on the `json-ext-encoder` codebase, you'll want to clone the project locally and install the required dependencies via [poetry](https://poetry.eustace.io):\n\n    $ git clone git@github.com:Gr1N/json-ext-encoder.git\n    $ poetry install\n\nTo run tests and linters use command below:\n\n    $ poetry run tox\n\nIf you want to run only tests or linters you can explicitly specify which test environment you want to run, e.g.:\n\n    $ poetry run tox -e py37-tests\n\n## License\n\n`json-ext-encoder` is licensed under the MIT license. See the license file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgr1n%2Fjson-ext-encoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgr1n%2Fjson-ext-encoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgr1n%2Fjson-ext-encoder/lists"}