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

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
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