work around PDO/MySQL quirks in unframed_sql_json_insert