Metadata-Version: 2.1 Name: ujson Version: 5.8.0 Summary: Ultra fast JSON encoder and decoder for Python Home-page: https://github.com/ultrajson/ultrajson Author: Jonas Tarnstrom License: UNKNOWN Download-URL: https://github.com/ultrajson/ultrajson Project-URL: Source, https://github.com/ultrajson/ultrajson Platform: any Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: BSD License Classifier: Programming Language :: C Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3 :: Only Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.12 Requires-Python: >=3.8 Description-Content-Type: text/markdown License-File: LICENSE.txt # UltraJSON [![PyPI version](https://img.shields.io/pypi/v/ujson.svg?logo=pypi&logoColor=FFE873)](https://pypi.org/project/ujson) [![Supported Python versions](https://img.shields.io/pypi/pyversions/ujson.svg?logo=python&logoColor=FFE873)](https://pypi.org/project/ujson) [![PyPI downloads](https://img.shields.io/pypi/dm/ujson.svg)](https://pypistats.org/packages/ujson) [![GitHub Actions status](https://github.com/ultrajson/ultrajson/workflows/Test/badge.svg)](https://github.com/ultrajson/ultrajson/actions) [![codecov](https://codecov.io/gh/ultrajson/ultrajson/branch/main/graph/badge.svg)](https://codecov.io/gh/ultrajson/ultrajson) [![DOI](https://zenodo.org/badge/1418941.svg)](https://zenodo.org/badge/latestdoi/1418941) [![Code style: Black](https://img.shields.io/badge/code%20style-Black-000000.svg)](https://github.com/psf/black) UltraJSON is an ultra fast JSON encoder and decoder written in pure C with bindings for Python 3.8+. Install with pip: ```sh python -m pip install ujson ``` ## Usage May be used as a drop in replacement for most other JSON parsers for Python: ```pycon >>> import ujson >>> ujson.dumps([{"key": "value"}, 81, True]) '[{"key":"value"},81,true]' >>> ujson.loads("""[{"key": "value"}, 81, true]""") [{'key': 'value'}, 81, True] ``` ### Encoder options #### encode_html_chars Used to enable special encoding of "unsafe" HTML characters into safer Unicode sequences. Default is `False`: ```pycon >>> ujson.dumps("