Skip to content

Commit cffc7ae

Browse files
Update articles/logic-apps/logic-apps-content-type.md
Co-authored-by: Esther Fan <[email protected]>
1 parent 8d6e296 commit cffc7ae

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

articles/logic-apps/logic-apps-content-type.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,17 @@ The following steps describe how the expression works without casting or convers
6464

6565
If you work with JSON data that doesn't use a `Content-Type` header, you can manually convert that data to JSON by using the [json() function](workflow-definition-language-functions-reference.md#json), for example:
6666

67-
`@json(triggerBody())['client']['animal-type']`
67+
`json(triggerBody())['client']['animal-type']`
68+
69+
1. The `triggerBody()` function gets the `body` object from the workflow's trigger output. This object is typically a JSON object.
70+
71+
The source for the `body` object originates from the inbound HTTP request or event received by the workflow trigger.
72+
73+
1. The `json()` function explicitly parses the `body` object returned from the `triggerBody()` function as a JSON object.
74+
75+
This behavior is useful, for example, when the trigger body is a string that requires handling as JSON.
76+
77+
The remaining expression behavior is similar to the previous example.
6878

6979
### Create tokens for JSON properties
7080

0 commit comments

Comments
 (0)