textproc/py-pyjson5 2.0.0 OpenBSD
json5 serializer and parser written in Cython
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Categories
- textproc, lang/python
Description
JSON5 serializer and parser library for Python 3 written in Cython.
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.
Unless the input contains infinite or NaN values, the result will be valid JSON data.
The parser can handle all valid JSON5 1.0.0 and JSON data can be read, unless the nesting level is absurdly high.
Install
Binary package:
pkg_add py3-pyjson5
From the ports tree:
cd /usr/ports/textproc/py-pyjson5 && make install