A Python implementation of the JSON5 data format.
Project description
pyjson5
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 package for ease of use.
This is an early release. It has been reasonably well-tested, but it is SLOW. It can be 1000-6000x slower than the C-optimized JSON module, and is 200x slower (or more) than the pure Python JSON module.
Known issues
The cls keyword argument that json.load()/json.loads() accepts to specify a custom subclass of JSONDecoder is not and will not be supported, because this implementation uses a completely different approach and doesn’t have anything like the JSONDecoder and JSONEncoder classes.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file json5-0.6.0.tar.gz.
File metadata
- Download URL: json5-0.6.0.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42eae9a2fe8241fbb92c867a8906c596b23286a4fdd032c8628b8e79ee2bfd06
|
|
| MD5 |
d638e7d28e4e3ceba088768e3378b993
|
|
| BLAKE2b-256 |
773df95c2ec12c45257462207f8a9605ca60309b1e62844bb27ac3628ab65cbf
|
File details
Details for the file json5-0.6.0-py2.py3-none-any.whl.
File metadata
- Download URL: json5-0.6.0-py2.py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd9bbe00eb814ed77ed0b93fad35dd7ed51d25b6100527060a7204beaf9b268b
|
|
| MD5 |
d96c4e29224283966840a45d7822c5da
|
|
| BLAKE2b-256 |
6c10f16c980127810f6838a309463634d5f46786bf418737b42e544787e1a658
|