I'm converting an SQL query to JSON using something like:
SELECT JSON_ARRAYAGG(JSON_OBJECT('field1', field1, ...)) FROM db.table
One of my columns of string type contain simple ASCII strings with double quotes ("
) here and there.
My problem is that the double quotes are converted to \\"
, which is invalid JSON.
How can I make sure that \"
is generated instead?