Django-JSONPlus
Django extension for non-basic types’ serialization to JSON via jsonplus lib.
Install
Install from PyPI:
pip install django-jsonplus
Add to your settings.py:
INSTALLED_APPS = [
<other-apps>
'django_jsonplus',
]
Usage
To use jsonplus for database values (de-)serialization, use the JSONPlusField:
from django.db import models
from django.contrib.postgres.fields import JSONField
from django_jsonplus.models import JSONPlusField
class MyModel(models.Model):
# stores only numbers, strings, lists, dicts (but not dates)
basic_data = JSONField()
# stores datetime, namedtuple, set, decimal, complex...
rich_data = JSONPlusField()
Metadata
Release files for django-jsonplus 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-jsonplus-0.1.3.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_jsonplus-0.1.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 8.2 kB
Release files / django-jsonplus-0.1.3.tar.gz
| Download URL | django-jsonplus-0.1.3.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e58ca45c6e40aa429b9530027e0bccd97c034ad10cad9865ba3bcac30a75bb74
|
|
BLAKE2b-256 checksum How to use checksums |
6f0bd97453995fd38cd50df8fa54f8da1241f14d7c85c02671167fe452be51fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_jsonplus-0.1.3-py2.py3-none-any.whl
| Download URL | django_jsonplus-0.1.3-py2.py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b9c4eed4cf75a4803c36b4bfaece25303ef1fddfe107ae2e63876f9693adb965
|
|
BLAKE2b-256 checksum How to use checksums |
b3e13fae08d3a255b339f62dc2816665f3672fff54bfaab9bd71734621393d27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |