Trying to extract a field from a REST response in a Studio SNIPPET action. The call works, returns 200, but the snippet fails validation. Here is the code causing the headache:
var resp = GetRESTProxy("MyProxy"); ASSIGN: data = JSON.parse(resp); ASSIGN: val = data.result.id;
The editor underlines JSON.parse as invalid. Can’t use standard JS in SNIPPET blocks apparently. How do we parse the JSON without writing a separate microflow or using a messy string split?