51 | | on PostgreSQL 16.8 and Django's main branch. I get a JSON null instead of a `"null"` string. Which is surprising since JSON null is supposed to be stored through `Value(None, JSONField())` [https://docs.djangoproject.com/en/5.2/topics/db/queries/#storing-and-querying-for-none as documented here]. I'd have expected this to use SQL `NULL` instead, raising `IntegrityError`, like `update()` and `save()`. |
| 51 | on PostgreSQL 16.8 and Django's main branch. I get a JSON null instead of a `"null"` string. Are you sure you're not getting the same? |
| 52 | |
| 53 | Sidenote: that this saves a JSON null is surprising since JSON null is supposed to be stored through `Value(None, JSONField())` [https://docs.djangoproject.com/en/5.2/topics/db/queries/#storing-and-querying-for-none as documented here]. I'd have expected this to use SQL `NULL` instead, raising `IntegrityError`, like `update()` and `save()` on JSONField with `null=False`. |