Webhooks & Parse.com

I was referred here from the following: Using Spark.publish() with Simple JSON Data

Unfortunately, I think that this is still an issue. I think the issue arrises when you have to specify application/json in the headers.

here is my json:

{
    "event": "segment",
    "url": "https://PASSWORD@api.segment.io/v1/track",
    "requestType": "POST",
    "headers": {"content-type": "application/json"},
    "json": {
        "published_at": "{{SPARK_PUBLISHED_AT}}",
        "userId": "{{SPARK_CORE_ID}}",
        "From" : "+1 747-225-8111",
        "To" : "+13107458875",
        "Body" : "{{SPARK_EVENT_VALUE}}"
    },
    "mydevices": true
}

Here is the data that Particle says that I am posting:

Here is the data my third party app interprets:

Notice “data”: appended to the event. obviously this is the default. If I alter my json to be:

{
    "event": "segment",
    "url": "https://PASSWORD@api.segment.io/v1/track",
    "requestType": "POST",
    "headers": {"content-type": "application/json"},
    "json": {
        "published_at": "{{SPARK_PUBLISHED_AT}}",
        "userId": "{{SPARK_CORE_ID}}",
        "From" : "+1 747-225-8111",
        "To" : "+13107458875",
        "Body" : "{{SPARK_EVENT_VALUE}}"
    },
    "noDefaults": true,
    "mydevices": true
}

(I added noDefaults) Particle still receives my event, but no event is passed to the third party.

I think this is two separate issues, it seems like the webhook is posting data as a string within “json”:{} which includes the 's and does not format the json properly on post, so the third party only receives one event. The other is an issue with noDefaults, which seems to stop any data from being passed.