如何在Mulesoft中处理JSON字符串中的转义序列

时间:2019-08-14 11:25:27

标签: json mule

我有这样的json输入

{
    "receivedNumber": "\357425078",
    "receivedRma": "RL975F0718331133212",
    "EndDate": "12/16/2017 12:54:13 PM",
    "manufacturerDate": "11/14/2016",
    "firstUseDate": "12/17/2016 11:58:20 AM"
}

对于此输入,由于'receivedNumber'中的转义序列,'json到对象转换器'失败

有什么解决办法吗?如何处理转义序列?

1 个答案:

答案 0 :(得分:0)

尝试

"{ \"receivedNumber\": \"\357425078\", \"receivedRma\": \"RL975F0718331133212\", \"EndDate\": \"12/16/2017 12:54:13 PM\", \"manufacturerDate\": \"11/14/2016\", \"firstUseDate\": \"12/17/2016 11:58:20 AM\" }";