Skip to content

Commit 57c88e1

Browse files
authored
Update json-transformations.md
First review
1 parent 6c32def commit 57c88e1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/active-directory-b2c/json-transformations.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -225,19 +225,19 @@ Gets the first element from a JSON data.
225225

226226
| Item | TransformationClaimType | Data Type | Notes |
227227
| ---- | ----------------------- | --------- | ----- |
228-
| InputClaim | inputJsonClaim | string | The ClaimTypes that are used by the claims transformation to get the item from the JSON data. |
229-
| OutputClaim | key | string | The ClaimType that is produced after this ClaimsTransformation has been invoked, the first element key in the JSON array. |
230-
| OutputClaim | value | string | The ClaimType that is produced after this ClaimsTransformation has been invoked, the first element value in the JSON array. |
228+
| InputClaim | inputJson | string | The ClaimTypes that are used by the claims transformation to get the item from the JSON data. |
229+
| OutputClaim | key | string | The first element key in the JSON. |
230+
| OutputClaim | value | string | The first element value in the JSON. |
231231

232-
In the following example, the claims transformation extracts the first element (first name) from the JSON data.
232+
In the following example, the claims transformation extracts the first element (given name) from the JSON data.
233233

234234
```XML
235235
<ClaimsTransformation Id="GetGivenNameFromResponse" TransformationMethod="GetSingleItemFromJson">
236236
<InputClaims>
237237
<InputClaim ClaimTypeReferenceId="json" TransformationClaimType="inputJson" />
238238
</InputClaims>
239239
<OutputClaims>
240-
<OutputClaim ClaimTypeReferenceId="givenNameAttribute" TransformationClaimType="key" />
240+
<OutputClaim ClaimTypeReferenceId="givenNameKey" TransformationClaimType="key" />
241241
<OutputClaim ClaimTypeReferenceId="givenName" TransformationClaimType="value" />
242242
</OutputClaims>
243243
</ClaimsTransformation>
@@ -246,9 +246,9 @@ In the following example, the claims transformation extracts the first element (
246246
### Example
247247

248248
- Input claims:
249-
- **inputJson**: {"firstName": "Emilty", "lastName": "Smith"}
249+
- **inputJson**: {"givenName": "Emilty", "lastName": "Smith"}
250250
- Output claims:
251-
- **key**: firstName
251+
- **key**: givenName
252252
- **value**: Emilty
253253

254254

0 commit comments

Comments
 (0)