psycopg2 inserts null into a column when inserting None.
...
foo=json.dumps(insertObj.get('foo', None)),
...
db.session.add(s)
db.session.commit()
The value in the column is a string 'null' not the database type null which looks like <null> in the database manager. I thought it should insert database type null for None (see this question).
What should be inserted into a json column for an empty json value for best practice?