demjson
demjson copied to clipboard
Python module for JSON data encoding, including jsonlint. See the project Wiki here on Github. Also read the README at the bottom of this page, or the project homepage at
More information here on the change is in the GitHub issue https://github.com/pypa/setuptools/issues/2086 and in the `setuptools` ChangeLog https://setuptools.readthedocs.io/en/latest/history.html#v58-0-0
This worked for now, but is SyntaxError in Python 3.9.0a6: ``` File "/usr/lib/python3.9/site-packages/demjson.py", line 4853 elif c.isalpha() or c in'_$': ^ SyntaxError: invalid string prefix ``` (The Python change might...
Would you support numpy to json ? this is a common problem , and then I have not found a good solution
Hello! Would it be possible to get a way to allow non-BMP characters? It is currently grouped together with non-portable issues, which is fair, but then I can't allow only...
js_obj = """{ userInfo: { id: 0, userName: '', avatarUrl: '', isPgc: false, isOwner: false } } """ 如何实现转换?
[This sanity check](https://github.com/dmeranda/demjson/blob/5bc65974e7141746acc88c581f5d2dfb8ea14064/demjson.py#L4946-L4962) keeps demjson from correctly parsing `{あ:2}`. When I simply disable it, the parse is successful. Unicode identifiers are valid ECMAScript, and most definitely not gibberish, so demjson...
FYI for others searching.
In Python 3.9+, the ABCs have to be imported from 'collections.abc' instead of from 'collections'. Fixes #33.
https://bugzilla.redhat.com/show_bug.cgi?id=1792921 https://github.com/dmeranda/demjson/blob/5bc65974e7141746acc88c581f5d2dfb8ea14064/test/test_demjson.py#L118 Thanks for the library!
Cf issue #27. This is separating the case of non-BMP characters from the general non-portable property. It has the same default behaviour as non-portable.