我有一个包含多行的CSV文件。我正在读取CSV文件并在读完每行后设置我的mongo查询的where子句。
这就是行的样子。
[
{
"category":"Accessories & Moments",
"subs": [
{
"subcategory":"'Watch Store"
},
{
"subcategory":"Premium Fragments"
},
{
"subcategory":"Confectioneries"
}
]
}
...............................................
]
如您所见,第一列仅包含单个反斜杠(),但是当我在我的mongo Query中设置相同并执行Sys.Out.print时,它会显示两个反斜杠(\),如此
select ID, Date, Name, INTime from Mytable
union all
select ID, Date, Name, OutTime from Mytable
order by ID, INTime asc
{" $和" :[{" merchantId" :" WILLIAM PENN \\ 145"},{" terminalId" :" 12711061"},{" terminalOwnerName" :" WILLIAM PENN"}]}
如何从中删除多余的反斜杠?