如何在DataWeave 2.0中获得一个反斜杠?
%dw 2.0
output application/json
---
{
"attempt1": "\String",
"attempt2": "\\String"
}返回:
{
"attempt1": "\\String",
"attempt2": "\\String"
}发布于 2019-08-22 19:07:47
看起来,您的输出是一个json,在json中,\总是需要在字符串中转义。这就是为什么你总是会看到两个\
https://stackoverflow.com/questions/57615113
复制相似问题