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
Resolve Support Tickets 2x Faster​ with ServoDesk Icon
Resolve Support Tickets 2x Faster​ with ServoDesk

Full access to Enterprise features. No credit card required.

What if You Could Automate 90% of Your Repetitive Tasks in Under 30 Days? At ServoDesk, we help businesses like yours automate operations with AI, allowing you to cut service times in half and increase productivity by 25% - without hiring more staff.
Try ServoDesk 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