import unittest
import pytest
from django.db import models
from dirtyfields import DirtyFieldsMixin

JSON_FIELD_AVAILABLE = False
try:
    from jsonfield import JSONField
    JSON_FIELD_AVAILABLE = True
except ImportError:
    pass


if JSON_FIELD_AVAILABLE:
    class JSONFieldModel(DirtyFieldsMixin, models.Model):
        json_field = JSONField()


@unittest.skipIf(not JSON_FIELD_AVAILABLE, 'django jsonfield library required')
@pytest.mark.django_db
def test_json_field():
    tm = JSONFieldModel.objects.create(json_field={'data': 'dummy_data'})

    tm.json_field['data'] = 'dummy_data_modified'

    assert tm.get_dirty_fields() == {
        'json_field': {'data': 'dummy_data'}
    }

@@ -534,73 +534,72 @@
 a': 
-'dummy_data'%7D)%0A%0A    tm.json_field%5B'data'%5D = 'dummy_data_modified'
+%5B1, 2, 3%5D%7D)%0A%0A    data = tm.json_field%5B'data'%5D%0A    data.append(4)
 %0A%0A  
@@ -669,20 +669,17 @@
 a': 
-'dummy_data'
+%5B1, 2, 3%5D
 %7D%0A  

Update test_json_field.py to produce error.