Django Creating a JSONField


Example

Available in Django 1.9+

from django.contrib.postgres.fields import JSONField
from django.db import models

class IceCream(models.Model):
    metadata = JSONField()

You can add the normal **options if you wish.

! Note that you must put 'django.contrib.postgres' in INSTALLED_APPS in your settings.py