Versions

Description

A 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. E.g. this snippet is safe for any and all input:

"<a onclick='alert(" + encode(data) + ")'>show message</a>"

Unless the input contains infinite or NaN values, the result will be valid JSON data.

All valid JSON5 1.0.0 and JSON data can be read, unless the nesting level is absurdly high.

Repository

https://github.com/Kijewski/pyjson5.git

Project Slug

pyjson5

Last Built

5 months, 1 week ago passed

Maintainers

Home Page

https://github.com/Kijewski/pyjson5

Badge

Tags

json, cython, python3, serializer, json5, rfc8259

Project Privacy Level

Public

Short URLs

pyjson5.readthedocs.io
pyjson5.rtfd.io

Default Version

latest

'latest' Version

master