Studio Snippet GetRESTProxy JSON parsing error

Quick question about parsing JSON in a CXone Studio snippet using GetRESTProxy. I am hitting an internal analytics endpoint via GetRESTProxy and the response body is a valid JSON string, but attempting to assign a specific nested field to a variable using ASSIGN results in a null value or a type mismatch error in the logs. Is there a specific syntax for dereferencing the JSON payload within the snippet action, or do I need to preprocess the string first?

Thanks.

Make sure you use the .body property to access the raw JSON string before parsing it. I tried GetRESTProxy().result directly and got null, but JSON.parse(GetRESTProxy().body) actually works in my Five9 migration scripts.