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
Auth for GenAI | Auth0 Icon
Auth for GenAI | Auth0

Enable AI agents to securely access tools, workflows, and data with fine-grained control and just a few lines of code.

Easily implement secure login experiences for AI Agents - from interactive chatbots to background workers with Auth0. Auth for GenAI is now available in Developer Preview
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