这看起来很明显,但不知何故它对我不起作用。我正在尝试在 Microsoft Azure 上的 Logic App 中构建解决方案,但我坚持将 JSON 对象转换为 XML。
我的要求是执行存储过程并以 XML 格式保存响应。默认情况下,SQL 执行存储过程操作以以下 JSON 格式返回响应,
{
"OutputParameters": { },
"ReturnCode": 0,
"ResultSets": {
"Table1": [
{
"ProductID": 680,
"Name": "HL Road Frame - Black, 58",
"ProductNumber": "FR-R92B-58",
"Color": "Black",
"StandardCost": 1059.31,
"ListPrice": 1431.5,
"Size": "58",
"Weight": 1016.04
},
{
"ProductID": 706,
"Name": "HL Road Frame - Red, 58",
"ProductNumber": "FR-R92R-58",
"Color": "Red",
"StandardCost": 1059.31,
"ListPrice": 1431.5,
"Size": "58",
"Weight": 1016.04
}]
}
}
Run Code Online (Sandbox Code Playgroud)
然后在“创建 Blob”操作中使用上述响应以在 Azure 上的 Blob 中保存响应。 …