CXone Studio: GetRESTProxy response parsing fails on nested JSON

Struggling to parse a nested JSON response inside a CXone Studio snippet. The REST call succeeds, but the ASSIGN action throws a validation error when trying to access a deeply nested property. Here’s the snippet code:

GetRESTProxy("myProxy", "GET", "https://api.example.com/data/123", "", "application/json")
ASSIGN("result", "myProxy.response")
ASSIGN("userId", "result.data.user.id")

The API returns a 200 OK with this payload:

{
 "data": {
 "user": {
 "id": 98765,
 "name": "Test User"
 }
 },
 "status": "success"
}

The first ASSIGN works fine, storing the whole JSON object in result. The second ASSIGN fails with “Invalid path: result.data.user.id”. I’ve tried variations like result['data']['user']['id'] and result.data["user"].id but Studio’s parser rejects them. The documentation is vague on supported JSON path syntax. Is there a specific way to traverse nested objects in Studio? Or do I need to flatten the response first? The error log just says “Path does not exist” which is misleading since the path clearly exists in the JSON.

Also, if I change the ASSIGN to ASSIGN("userId", "result.data"), it works. So the issue is specifically with the depth. Is there a limit? Or is it a bug? I’ve checked the Studio release notes but found nothing. This is blocking a critical integration where we need to extract specific fields from a third-party API response. Any workaround or fix would be appreciated. The snippet is deployed in production and failing, so I need a quick solution. Not sure if I’m missing a basic syntax rule or if this is a known limitation. The docs mention “JSON path” but don’t give examples for nested structures. Feeling stuck on this one. Tried debugging by logging result to the session data, but it just shows [object Object] which isn’t helpful. Need a way to drill down into that JSON.