Deserializing MandrillApp Webhook response
MandrillApp API supposedly sends a JSON-encoded array of the messages with the mime type application/x-www-form-urlencoded . The problem I have encountered is that the data received looks like: mandrill_events=%5B%7B%22event%22%3A%22send%22 %2C%22msg%22%3A%7B%22ts%22%3A136510999...etc Url decoded it is: mandrill_events=[{"event":"send","msg":{ "ts":1365109999,"subject"...etc I try to deserialize this string into a class that represents the JSON data but the JSON.NET deserializer spits out an error. Code m = JsonConvert.DeserializeObject<MandrillEvents>(s); Exception Unexpected character