standardjson
JSON encoder fully compliant with the ECMA-262 and ECMA-404 specifications.
Free software: BSD license
Documentation: http://standardjson.readthedocs.org.
Features
Support for all objects that the Python stdlib’s json.JSONEncoder can encode, plus:
datetime.datetime
datetime.date
datetime.time
decimal.Decimal
Works on Python 2.6, 2.7, 3.3. Probably works on 3.4 and 3.5 but I haven’t set up tests for those with Tox yet.
Quickstart
Use StandardJSONEncoder as you would use json.JSONEncoder from the Python standard library:
>>> import datetime
>>> import json
>>> from standardjson import StandardJSONEncoder
>>> json.dumps({'day': datetime.date(2010, 2, 17)}, cls=StandardJSONEncoder)
'{"day": "2010-02-17"}'
History
0.3.1 (2014-05-21)
Full rename to standardjson (missed some files in 0.3.0).
0.3.0 (2014-05-21)
Rename package to standardjson.
StandardJSONEncoder is now in encoders module.
Encoder functions are now in encoder_funcs module.
0.2.0 (2014-05-20)
Full implementation with tests.
Separate encoders module for encoder functions.
Bump to Alpha.
0.1.0 (2014-05-18)
First release on PyPI.
Metadata
Release files for standardjson 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| standardjson-0.3.1.tar.gz | 12.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| standardjson-0.3.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 17.5 kB
Release files / standardjson-0.3.1.tar.gz
| Download URL | standardjson-0.3.1.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71b7b0a649d5e3bd343a02737e752c054c218242dcaa739abab98086e537fbab
|
|
BLAKE2b-256 checksum How to use checksums |
eec9fec85650e7364a2d9ad4f0ae8a1a8356e9bc0754c22a9eb5b0bd42d80d8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / standardjson-0.3.1-py2.py3-none-any.whl
| Download URL | standardjson-0.3.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
69e79b090d3f7dd887ae4a9db226ea79cd3fd3d7cfa8491d23ec6b06126e24b0
|
|
BLAKE2b-256 checksum How to use checksums |
71aa0e895a29171f8163a426ce69f012c66d72c9c2499d31ba2e8a393985d08e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for standardjson 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.