Suppose the use types "{'x':True}" instead of true. Loads will fail.
Dump will succeed but it will serialize it as string not as
dictionary.
Logically what you ask cannot be done. The text field requires JSON.
We validate Json. If the json is invalid we cannot "deserialize it"
before json.dumping again.

On Oct 25, 9:03 am, szimszon <szims...@gmail.com> wrote:
> Try to .loads() it and if it failed try to .dumps() and store it in db.

Reply via email to