sdjson¶
Custom JSON Encoder for Python utilising functools.singledispatch to support custom encoders for both Python’s built-in classes and user-created classes, without as much legwork.
Based on https://treyhunner.com/2013/09/singledispatch-json-serializer/
and Python’s json
module.
Docs |
|
---|---|
Tests |
|
PyPI |
|
Anaconda |
|
Activity |
|
QA |
|
Other |
Installation¶
python3 -m pip install sdjson --user
First add the required channels
conda config --add channels https://conda.anaconda.org/conda-forge
conda config --add channels https://conda.anaconda.org/domdfcoding
Then install
conda install sdjson
python3 -m pip install git+https://github.com/domdfcoding/singledispatch-json@master --user
Contents¶
View the Function Index or browse the Source Code.