BizTalk 2016 商务英语

BizTalk 2016 BRE

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

下面是JSON输入

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

}

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

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

}

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

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

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

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