I have the following logic app definition
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"JSONToJSON1": {
"inputs": {
"content": "@triggerBody()",
"integrationAccount": {
"map": {
"name": "48995ebf-6578-44fe-b32f-e5600bc3deb8.liquid"
}
}
},
"kind": "JsonToJson",
"runAfter": {},
"type": "Liquid"
},
"Response1": {
"inputs": {
"body": "@body('JSONToJSON1')",
"headers": {},
"statuscode": 200
},
"kind": "Http",
"runAfter": {
"JSONToJSON1": [
"Succeeded"
]
},
"type": "Response"
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
},
"FunctionAppName": {
"defaultValue": "",
"type": "String"
},
"ResourceGroupName": {
"defaultValue": "",
"type": "String"
},
"SubscriptionId": {
"defaultValue": "",
"type": "String"
}
},
"triggers": {
"manual": {
"inputs": {
"schema": {}
},
"kind": "Http",
"type": "Request"
}
}
}
}
- Case 1:
When the content of 48995ebf-6578-44fe-b32f-e5600bc3deb8.liquid is {"target":{{content.source}}}
and the POST body to my trigger is
{
"source":12345671010.89
}
the response returns the number property "target" as a round (uncertain) of what I sent in property "source" (see below)
{
"target": 12345670000.0
}
- Case 2:
When the content of 48995ebf-6578-44fe-b32f-e5600bc3deb8.liquid is {"target":"{{content.source}}"}
and the POST body to my trigger is
{
"source":12345671010.89
}
the response returns the number in string property "target" as the non-precise scientific notation of what I sent in property "source" (see below)
{
"target": "1.234567E+10"
}
In both cases, the expected behaviour is that the property "target" should receive the value of the property "source" as sent in the trigger body.
How should I modify my logic app to achieve this?