Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Kijewski/pyjson5
A JSON5 serializer and parser library for Python 3 written in Cython.
https://github.com/Kijewski/pyjson5
cpython json json5 library python python3
Last synced: 3 months ago
JSON representation
A JSON5 serializer and parser library for Python 3 written in Cython.
- Host: GitHub
- URL: https://github.com/Kijewski/pyjson5
- Owner: Kijewski
- License: apache-2.0
- Created: 2018-05-03T01:00:53.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-04-24T04:04:17.000Z (6 months ago)
- Last Synced: 2024-04-24T09:42:04.184Z (6 months ago)
- Topics: cpython, json, json5, library, python, python3
- Language: C++
- Homepage: https://pyjson5.readthedocs.io
- Size: 311 KB
- Stars: 125
- Watchers: 1
- Forks: 6
- Open Issues: 10
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- starred-awesome - pyjson5 - A JSON5 serializer and parser library for Python 3 written in Cython. (Python)
README
PyJSON5
==========A JSON5 serializer and parser library for Python 3 written in
`Cython `_.Serializer
----------The serializer returns ASCII data that can safely be used in an HTML template.
Apostrophes, ampersands, greater-than, and less-then signs are encoded as
unicode escaped sequences. E.g. this snippet is safe for any and all input:.. code:: html
Unless the input contains infinite or NaN values, the result will be valid
`JSON `_ data.Parser
------All valid `JSON5 1.0.0 `_ and
`JSON `_ data can be read,
unless the nesting level is absurdly high.Functions
---------You can find the full documentation online at https://pyjson5.readthedocs.io/en/latest/.
Or simply call ``help(pyjson5)``. :-)The library supplies load(s) and dump(s) functions, so you can use it as a
drop-in replacement for Python's builtin ``json`` module, but you *should*
use the functions ``encode_*()`` and ``decode_*()`` instead.Compatibility
-------------At least CPython 3.5 or a recent Pypy3 version is needed.