Trying to parse a JSON array response in a CXone Studio snippet using the REST proxy. I’m hitting an external endpoint and getting a 200 OK, but when I assign the response to a variable, it’s coming back as a string instead of an object. Here’s the snippet code:
<GetRESTProxy Name="Proxy" Url="https://api.example.com/data" Method="GET" />
<ASSIGN Target="Result" Value="Proxy.Response" />
How do I convert Proxy.Response to a usable object or array in Studio? I’ve tried using JSON.Parse but it’s throwing a syntax error.