{"library":"json-encoder","type":"library","category":null,"description":"json-encoder is a Python library (version 0.4.4) designed to simplify JSON serialization by using the `singledispatch` pattern, eliminating the need for extensive `json.dumps(data, cls=MyJSONEncoder)` calls. It offers default serialization for common types like `time`, `date`, `datetime`, `UUID`, and `Decimal`, and can parse JSON float numbers into `Decimal` objects to mitigate Python float precision issues. The library is designed to be largely independent of specific underlying JSON implementations (e.g., `json`, `simplejson`, `ujson`), allowing users to choose their preferred backend.","language":"python","status":"maintenance","version":"0.4.4","tags":["json","encoding","serialization","singledispatch","decimal","datetime","uuid"],"last_verified":"Sun May 24","install":[{"cmd":"pip install json-encoder","imports":["from json_encoder import json","from json_encoder import use_json_library","from json_encoder.encoder import json_encoder\n@json_encoder.register(MyCustomType)"]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/json-encoder/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.6,"avg_import_s":0.04,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/json-encoder/compatibility"}}