rows = [{"id": 1, "json_value": [{"key": "value"}, {"key2": "value2"}]}, {"id": 2, "json_column": None}]
insert_query = table.insert().values(rows)
connection.execute(insert_query)
Doing this will have "null" (String) entered to the row where id=2. Rather than the NULL type.
Is there any way to properly do multiple row insert where value of some JSON columns is NULL?
Noneshould correspond to jsonnullnot"null"and thus to SQLNULL.