I am using Python to insert JSON objects into a PostgreSQL DB table. The JSON nested are highly nested. The strings in some of these JSON objects include '\u0000', which is an illegal character and UNICODE and must be sanitized before inserting into PG.
What would be the fastest way of doing that?