I have a playbook that fetches UDM events using the ‘GoogleChronicle - Execute UDM Query’ action. This action return events in the format below:
{
"events": [
{"foo": “bar”},
]
}
I need to loop over each event in the events list returned, and send an email containing the dict details. I cannot seem to consume this data in any GSO action without throwing the below error:
Message: Unable to cast object of type 'System.String' to type 'Newtonsoft.Json.Linq.JToken'.
I can use the base JSONResult from the action, but after parsing it and trying to access the nersted values, i get the above.
Any idea what could be causing this?
Thanks
