This is bit problematic as many SQL databases have '?' in their C interface definition and cannot escape it, so general solution (as for all SQL RDBMs) is impossible.
However, it is my understanding that jsonb type is specific for PGSQL. For this parcular SQL flavor, I have added