I’m building a snippet to fetch user details via GetRESTProxy. The call works, but I’m stuck on the JSON parsing. The response is an array, so response.data isn’t working directly.
GetRESTProxy('users', 'GET', '/api/v2/users/me', null, 'response')
ASSIGN 'userId' = response.data.id
This returns null. How do I access the first element in the array? I’ve tried response.data[0].id but Studio throws a syntax error. Is there a specific way to handle arrays in these snippets?