在JSON数据中将双反斜杠转换为单反斜杠

时间:2020-05-15 10:56:14

标签: sql json postgresql

我已经用COPY ({0}) TO STDOUT创建了一个json文件,并使用 cursor.copy_expert(query,f)。

这个萌发的json是无效的josn,如下所示:

{"id":1192,"slug":"animals/which-dog-breed-are-you","ques_id":"16bb7623c075c70","text":"1. Finish this sentence:\\"My best friend ______?","meta_fetched_on":"2020-05-14"}

所以如何在光标时删除单斜杠中的\斜杠。copy_expert(query,f)。

0 个答案:

没有答案