Hi Carlton, hi Sage,
I just tested this implementation against my JSONField form editor library, namely django-entangled, using SQLIte.As you can see from the
testing matrix, everything works fine using the well known
jsonfield and
jsonfield2, which until Django-3 are the only viable options currently available for SQLite.
However, after switching to the new implementation using the built-in JSONField,
one of my units tests does not pass. After examining this locally, I discovered, that the form
reports product_form._errors: {'properties': ['Value must be valid JSON.']}
The location where this exception is raised, is inside the JSONField's
validate() method. And the reason it is raised
is because json.dumps(value, cls=self.encoder) can not reparse a valid dictionary containing for instance a Python Decimal value.
Why should a valid Python dictionary be json.dumps(value, cls=self.encoder) anyway?
– Jacob