Skip to main content

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)

Source distribution for django-jsonplus 0.1.3
File Size Uploaded
django-jsonplus-0.1.3.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-jsonplus 0.1.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page