A Python implementation of the JSON5 data format.
Project description
A Python implementation of the JSON5 data format.
JSON5 extends the JSON data interchange format to make it slightly more usable as a configuration language:
JavaScript-style comments (both single and multi-line) are legal.
Object keys may be unquoted if they are legal ECMAScript identifiers
Objects and arrays may end with trailing commas.
Strings can be single-quoted, and multi-line string literals are allowed.
There are a few other more minor extensions to JSON; see the above page for the full details.
This project implements a reader and writer implementation for Python; where possible, it mirrors the standard Python JSON API for ease of use.
This is an early release. It is not well-tested, and has not been tuned for performance.
Known issues
Despite what is written above, unquoted object keys cannot be just any ECMAScript identifier; they must start with either an ASCII letter ([a-zA-Z]), ‘$’, or ‘_’. and contain only ASCII letters, ‘$’, ‘_’, or digits. Support for unicode letter classes is issue 4 and support for escape sequencese is issue 5.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for json5-0.2.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5984ac74d997bba1f6c964997b95217e414d2a4d73c85a5a2e47672095c1b45e |
|
MD5 | 84730b9f156b78ecd133b5a5a64634d4 |
|
BLAKE2b-256 | bee13e20893e152375787599f5b9d373d54b113ff83a442662686a4a39467e79 |