pyjson5 icon indicating copy to clipboard operation
pyjson5 copied to clipboard

A Python implementation of the JSON5 data format

Results 10 pyjson5 issues
Sort by recently updated
recently updated
newest added

I have a float subclass with a customized __str__ method, and its str output is appearing in the results of json5.dumps. Here's a simplified example: ``` >>> import json5 >>>...

bug
available

I'm unable to install json5. I'm using Python 3.9.5, and tryin 3.9.13 next. ``` $ /home/user/.cache/pypoetry/virtualenvs/jupyterops-qDA-38_b-py3.9/bin/pip install setuptools json5 Requirement already satisfied: setuptools in /home/user/.cache/pypoetry/virtualenvs/jupyterops-qDA-38_b-py3.9/lib/python3.9/site-packages (60.6.0) Collecting json5 Using cached...

As is noted in the project description, this library is way slower than the standard `json` library. Is there plan to improve performance? What's the design and timeline?

bug

json5 allows numbers to be have hexadecimal representation, but can it generate hexadecimal numbers (via dump/dumps)?

Is there a way to preserve comments so that if I edit a file the comments it contained are still there?

enhancement

a = {"foo": 2} print(pyjson5.dumps(a, indent=2)) does not pretty-print.

## env python 3.9 ## details When the keyword inside the json string contains illegal escape characters (such as `\m` in `'{"na\\me": "test"}'`), json5.loads will remove `\` and the result...

``` error: Skipping analyzing "json5": module is installed, but missing library stubs or py.typed marker ```

Hi, I've got an error when parsing a jsonc file, it seems to be a bug within the parser. Full error message is: ``` File "src/_legacy.pyx", line 53, in pyjson5.load...

Include the tests and sample file needed by them in the sdist archive, in order to make it possible to use this archive as base of packaging for Linux distributions...