# views.py from .models import JSONData def store_json_data(): data = {"key1": "value1", "key2": "value2"} JSONData.objects.create(json_content=data)