So im trying to pass a JSON in a Query to save in the Database. But i can't figure out how to escape that single quote mark at "Don't". I've tried \' but i still can't pass it.
pgClient.query(`INSERT INTO data VALUES(83, '{ "name": "John Doe", "items": ["Don't", "Drink"] }')`)
Note: I've used the ` quote since i was passing the JSON as an object.