I’m migrating our 2.2.X apps to 3.1.2 and I am seeing JSON fields coming back as strings when they had previous came back as python dictionaries. This is happening on both model queries as well as raw SQL queries.
The models were changed to use
django.contrib.postgres.fields.JSONField. There does not appear to be any documentation indicating that we needed to make any other changes than this. I would have expected this to be sufficient in order to continue the same behavior.
On the raw SQL queries I’m not really sure what is happening. No changes have been made so I would have expected them to still be coming back as a dictionary.