jsonfield is a reusable model field that allows you to store validated JSON, automatically handling serialization to and from the database. To use, add jsonfield.JSONField to one of your models. Note: django.contrib.postgres now supports PostgreSQL's jsonb type, which includes extended querying capabilities. If you're an end user of PostgreSQL and want full-featured JSON support, then it is recommended that you use the built-in JSONField. However, jsonfield is still useful when your app needs to be database-agnostic, or when the built-in JSONField's extended querying is not being leveraged. e.g., a configuration field. JSONField is not intended to provide extended querying capabilities. That said, you may perform the same basic lookups provided by regular text fields (e.g., exact or regex lookups). Since values are stored as serialized JSON, it is highly recommended that you test your queries to ensure the expected results are returned.

Features

  • By default python deserializes json into dict objects
  • A model field's null argument typically controls whether null values may be stored in its column
  • Since values are stored as serialized JSON, it is highly recommended that you test your queries to ensure the expected results are returned
  • Supports Python: 3.6, 3.7, 3.8
  • Works with Django: 2.2, 3.0
  • Supports PostgreSQL's jsonb type

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow jsonfield

jsonfield Web Site

nel_h2
Secure User Management, Made Simple | Frontegg Icon
Secure User Management, Made Simple | Frontegg

Get 7,500 MAUs, 50 tenants, and 5 SSOs free – integrated into your app with just a few lines of code.

Frontegg powers modern businesses with a user management platform that’s fast to deploy and built to scale. Embed SSO, multi-tenancy, and a customer-facing admin portal using robust SDKs and APIs – no complex setup required. Designed for the Product-Led Growth era, it simplifies setup, secures your users, and frees your team to innovate. From startups to enterprises, Frontegg delivers enterprise-grade tools at zero cost to start. Kick off today.
Start for Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of jsonfield!

Additional Project Details

Programming Language

Python

Related Categories

Python Software Development Software, Python JSON Software, Python JSON Serialization Libraries

Registered

2022-09-02