How to store a dictionary in a Django database model’s field

I just discovered the django-jsonfield package, which

is a reusable Django field that allows you to store validated JSON in your model.

Looks like a viable option to achieve what you want.

Leave a Comment