I have the following json.
{
"notificationType": "PROFILE_UPDATED",
"userId": "11111-22222-33333",
"data": {
"linkedSystems.EMPI.euid": "12345678",
"userData.lastName": "Smith",
"userData.firstName": "John"
}
}
<ExtractVariables async="false" continueOnError="false" enabled="true" name="ExtractVariables">
<DisplayName>ExtractVariables</DisplayName>
<IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
<JSONPayload>
<Variable name="empi_euid">
<JSONPath>$.data.['linkedSystems.EMPI.euid']</JSONPath>
</Variable>
</JSONPayload>
</ExtractVariables>
Solved! Go to Solution.
Either of these work for me (Apigee X)
<Variable name='euid1'>
<JSONPath>$.data['linkedSystems.EMPI.euid']</JSONPath>
</Variable>
<Variable name='euid2'>
<JSONPath>$['data']['linkedSystems.EMPI.euid']</JSONPath>
</Variable>
Note: no dot between data and the opening square bracket in that first example.