【问题标题】:BizTalk 2016 BREBizTalk 2016 BRE
【发布时间】:2020-10-31 19:20:11
【问题描述】:

我正在尝试在 BRE 中替换 JSON 文件中的一些字符,我想在 BRE 管道中使用它。

下面是 JSON 输入

{
    "Attributes": "{}",
    "Credentials": "[]",
    "AccessRules": "[]",
    "EmployeeNumber": "A",

}

我想使用 BRE 将“{}”替换为 {},将“[]”替换为 [] 下面是最终 JSON 的样子。

{
    "Attributes": {},
    "Credentials": [],
    "AccessRules": [],
    "EmployeeNumber": "A",

}

注意:由于某种原因,我无法通过 BizTalk JSON 编码器管道创建空 JSON 对象和数组。

【问题讨论】:

    标签: c# azure biztalk biztalk-2013 biztalk-2016


    【解决方案1】:

    那么你的 BRE 规则中应该有两个操作

    Replace the string "{}" in the message body with {}
    
    Replace the string "[]" in the message body with []
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-28
      • 2019-04-16
      • 2021-05-26
      • 1970-01-01
      • 2019-10-22
      • 2019-05-02
      相关资源
      最近更新 更多