I am attempting to build a simple REST API (POST) for SendGrid's Event Webhook interface. The problem I am running into is with the JSON naming convention used in the SendGrid structure. They include a JSON name of "smtp-id". Notice the "dash" character. Here is an example:
{
"sg_message_id":"sendgrid_internal_message_id",
"email": "john.doe@sendgrid.com",
"timestamp": 1337197600,
"smtp-id": "<4FB4041F.6080505@sendgrid.com>",
"event": "delivered"
}
My problem is that when attempting to build a structure that maps to that JSON format, the system will not let me create an attribute with the name "smtp-id" because dashes are not allowed in names. That results in the system ignoring that name/value pair which is a big problem because that is the most important piece of information I need to map the SendGrid data to the internal eMail logging within Outsystems.
Has anyone run across this problem and if so do you have a solution? Or am is missing something really basic here? NOTE: I am running platform 9 and therefore the ardoJSON package is not compatible.
Any input would be appreciated.
Thanks,
Steve
Has anyone run across this problem and if so do you have a solution? Or am is missing something really basic here? NOTE: I am running platform 9 and therefore the ardoJSON package is not compatible.
Any input would be appreciated.
Thanks,
Steve