I’m trying to insert a JSONB into my database, which works correctly with the syntax below. However when I try to use the sanitized syntax using $1 it returns error invalid JSON:

It looks like your topic is missing some important information. Could you provide the following if applicable.
hello @Nicole_Reiter
How did the sanitized syntax look?
I suppose you can’t use type definitions ( :: ) in the Query Parameters.
Try to set them on the variables instead, e.g. $10::TIMESTAMPZ