繁体   English   中英

BizTalk 2016 BRE

[英]BizTalk 2016 BRE

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

下面是 JSON 输入

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

}

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

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

}

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

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

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM