我正在尝试使用逻辑应用程序执行 json -> json 转换。下面是逻辑应用代码。转换没有按预期工作。不知道是什么问题。我已经在在线液体沙箱中测试了模板,我没有发现任何问题。
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Response": {
"inputs": {
"body": "@body('Transform_JSON_to_JSON')",
"statusCode": 200
},
"kind": "Http",
"runAfter": {
"Transform_JSON_to_JSON": [
"Succeeded"
]
},
"type": "Response"
},
"Transform_JSON_to_JSON": {
"inputs": {
"content": "@triggerBody()",
"integrationAccount": {
"map": {
"name": "lqd"
}
}
},
"kind": "JsonToJson",
"runAfter": {},
"type": "Liquid"
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {},
"triggers": {
"manual": {
"inputs": {
"schema": {}
},
"kind": "Http",
"type": "Request"
}
}
}
}
模板:
{
"name" : "{{firstName}} {{lastName}}"
}
输入:
{
"firstName": "Jack",
"LastName": "Jill"
}
预期输出:
{
"name" : "Jack Jill"
}
Logic App 的实际输出:
{
"name": " "
}