NOTE: This project is seeking new active maintainers.
django-json-field contains a flexible JSONField and associated form field. The model field is not only capable of serializing common JSON data types (int, float, decimal, string, time, date, datetime, etc.) but also lazily deserializing them so they can be accessed and modified as normal Python objects within Django.
A form field is also provided. It will accept serialized representations:
While the JSON string will not be deserialized until it is accessed it can still be a performance concern, so you may find it valuable to disable the custom deserializer (JSONField(decoder=None)).
django-json-field is also compatible with South and Python 3.
Installation
Install from PyPI:
pip install django-json-field
If installing manually, first install the dependencies:
请发表评论