[英]BizTalk 2016 BRE
I am trying to replace some characters in a JSON file in BRE, I want to use this in BRE pipeline.我正在尝试替换 BRE 中 JSON 文件中的一些字符,我想在 BRE 管道中使用它。
Below is the JSON input下面是 JSON 输入
{
"Attributes": "{}",
"Credentials": "[]",
"AccessRules": "[]",
"EmployeeNumber": "A",
}
I want to replace "{}" to {} and "[]" to [] using BRE Below is the final JSON what it needs to look like.我想使用 BRE 将“{}”替换为 {},将“[]”替换为 [] 下面是最终的 JSON 它需要的样子。
{
"Attributes": {},
"Credentials": [],
"AccessRules": [],
"EmployeeNumber": "A",
}
Note: For some Reason I am not able to create Empty JSON Object and Array through BizTalk JSON Encoder Pipeline.注意:由于某种原因,我无法通过 BizTalk JSON 编码器管道创建空 JSON Object 和数组。
Then you should have two actions in your BRE rule那么你的 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.