Added explicit casts bytea=>jsonb and jsonb=>bytea (for jsonb=>bytea output using RETURNING bytea FORMAT JSONB and corresponding bytea=>jsonb input using <jsonb_bytea_expr> FORMAT JSONB).
This point has sense in Oracle, where JSON is blob. But it is little bit obscure in PostgreSQL context.