SendGrid returns Json Array of objects for the event hooks. How to parse this Json Array, remember its NOT the Json string in asp.net mvc POST action method. I know/find examples all over to parse a Json string. What would be my parameter type? Object ?
I am using C#, MVC 4, Json.Net.
Okay, here is some code.
The Json array I get will vary every time. It is not constant.
Example: [{name: "abc", event: "done"}, {name:"xyz", event:"processed"}]
another time, i might get: [{place:"pqr", some:"value"}]
so on.
Now how should be my MVC action method?
public string PostJsonHere(object jsonIReceive)
{
return "whatever";
}