gpt4 book ai didi

c# - BizTalk 2016 BRE

转载 作者:行者123 更新时间:2023-12-03 02:37:15 25 4
gpt4 key购买 nike

我正在尝试替换 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 []

关于c# - BizTalk 2016 BRE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62844628/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com