You need first to convert data
field to string (using ToString()
), and then deserialize that field. This is because data
is actually BinaryObject and not JSON string. It is mentioned also here https://learn.microsoft.com/en-us/dotnet/api/azure.messaging.eventgrid.eventgridevent.data?view=azure-dotnet#azure-messaging-eventgrid-eventgridevent-data