{"id":15620591,"url":"https://github.com/nschloe/fjson","last_synced_at":"2025-07-19T22:04:16.030Z","repository":{"id":45537135,"uuid":"282274509","full_name":"nschloe/fjson","owner":"nschloe","description":"Python JSON writer with formatted floats","archived":false,"fork":false,"pushed_at":"2022-11-30T10:59:32.000Z","size":70,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-02T18:45:55.144Z","etag":null,"topics":["json","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nschloe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-24T17:03:19.000Z","updated_at":"2024-09-12T10:58:26.000Z","dependencies_parsed_at":"2023-01-21T19:22:41.548Z","dependency_job_id":null,"html_url":"https://github.com/nschloe/fjson","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/nschloe/fjson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nschloe%2Ffjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nschloe%2Ffjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nschloe%2Ffjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nschloe%2Ffjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nschloe","download_url":"https://codeload.github.com/nschloe/fjson/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nschloe%2Ffjson/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266026178,"owners_count":23866030,"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":["json","python"],"created_at":"2024-10-03T09:01:32.351Z","updated_at":"2025-07-19T22:04:15.965Z","avatar_url":"https://github.com/nschloe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/nschloe/fjson\"\u003e\u003cimg alt=\"fjson\" src=\"https://nschloe.github.io/fjson/logo.svg\" width=\"50%\"\u003e\u003c/a\u003e\n  \u003cp align=\"center\"\u003eJSON with float formatting.\u003c/p\u003e\n\u003c/p\u003e\n\n[![PyPi Version](https://img.shields.io/pypi/v/fjson.svg?style=flat-square)](https://pypi.org/project/fjson)\n[![PyPI pyversions](https://img.shields.io/pypi/pyversions/fjson.svg?style=flat-square)](https://pypi.org/pypi/fjson/)\n[![GitHub stars](https://img.shields.io/github/stars/nschloe/fjson.svg?style=flat-square\u0026logo=github\u0026label=Stars\u0026logoColor=white)](https://github.com/nschloe/fjson)\n[![Downloads](https://pepy.tech/badge/fjson/month?style=flat-square)](https://pepy.tech/project/fjson)\n\u003c!--[![PyPi downloads](https://img.shields.io/pypi/dm/fjson.svg?style=flat-square)](https://pypistats.org/packages/fjson)--\u003e\n\n[![gh-actions](https://img.shields.io/github/workflow/status/nschloe/fjson/ci?style=flat-square)](https://github.com/nschloe/fjson/actions?query=workflow%3Aci)\n[![codecov](https://img.shields.io/codecov/c/github/nschloe/fjson.svg?style=flat-square)](https://codecov.io/gh/nschloe/fjson)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square)](https://github.com/psf/black)\n\nThe [json](https://docs.python.org/3/library/json.html) module in the Python standard\nlibrary does not allow you to specify the format in which `float`s are written out the\nfile. This module adds the `float_format` parameter.\n\n```python\nimport math\nimport fjson\n\n\ndata = {\"a\": 1, \"b\": math.pi}\nstring = fjson.dumps(data, float_format=\".6e\", indent=2, separators=(\", \", \": \"))\nprint(string)\n```\n\n\u003c!--pytest-codeblocks:expected-output--\u003e\n\n```json\n{\n  \"a\": 1,\n  \"b\": 3.141593e+00\n}\n```\n\n### License\n\nfjson is published under the [MIT license](https://en.wikipedia.org/wiki/MIT_License).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnschloe%2Ffjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnschloe%2Ffjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnschloe%2Ffjson/lists"}