How do I parse the nested token structure from a Cognigy profile in a Genesys Cloud Data Action? I’ve got the REST call working, but the JSON mapping keeps failing. The response from Cognigy looks like this:
{
“profile”: {
“tokens”: [
{“key”: “user_id”, “value”: “123”}
]
}
}
I’m trying to map profile.tokens[0].value in the Data Action editor. It throws a JSON parsing error or just returns null. I’ve tried profile.tokens.value as well. The endpoint is just a standard GET to our Cognigy instance. Is the array syntax wrong in the Genesys mapper? Or do I need to flatten it first?