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

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start 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