如何在DataWeave 2.0中获得一个反斜杠?
%dw 2.0 output application/json --- { "attempt1": "\String", "attempt2": "\\String" }
返回值:
{ "attempt1": "\\String", "attempt2": "\\String" }
machaval.. 5
看起来您的输出是一个json,在json中,\始终需要在字符串内进行转义。这就是为什么您总是会看到两个\
看起来您的输出是一个json,在json中,\始终需要在字符串内进行转义。这就是为什么您总是会看到两个\