Webhook with brackets

I’m receiving a webhook from ActiveCampaign but the JSON body is with brackets.

body":
{
"contact[id]":
"227848",
"contact[email]":
"[email protected]",

Is there a easy way to bypass this? This way the javascript doesn’t work.

Welcome to the community @Fabio_Santos1!

Did you check how it looks like in the JSON view? As I wonder if it is just a display issues.

Thanks @jan ! N8N is already an important tool for me.

Well… JSON looks just the same:

[

{

"headers":{

"host":"n8n-svn.up.railway.app",

"user-agent":"GuzzleHttp/6.5.5 curl/7.88.1 PHP/7.4.33",

"content-type":"application/x-www-form-urlencoded",

"content-length":"915",

"x-forwarded-for":"34.233.239.23",

"x-forwarded-proto":"https",

"x-envoy-external-address":"34.233.239.23",

"x-request-id":"bfad62a3-1df9-401d-9541-66c565b99346"

},

"params":{

},

"query":{

},

"body":{

"contact[id]":"2283",

"contact[email]":"[email protected]",

"contact[first_name]":"Lili Madelaine",

"contact[last_name]":"",

"contact[phone]":"8599343437",

"contact[orgname]":"",

"contact[customer_acct_name]":"",

"contact[tags]":"MQL > SF",

"contact[ip4]":"10.65.127.11",

"contact[fields][origem]":"Portal SVN",

"contact[fields][campanha]":"ebook-mulheres",

"contact[fields][grupo_de_anncios]":"interesses-mulheres-investimentos",

"contact[fields][anncio]":"ad1-mulheres",

"contact[fields][contedo]":"ebook-mulheres-investindo",

"contact[fields][source]":"facebook",

"contact[fields][medium]":"facebook",

"contact[fields][test]":"",

"contact[fields][uuid]":"44d9f39255ae",

"contact[fields][objetivo]":"Melade",

"contact[fields][whatsapp_existe]":"true",

"contact[fields][etapa_sf]":"Novo",

"contact[fields][status_sf]":"Ativo",

"seriesid":"110"

}

}

]

Thanks, that is great to hear!

In that case, does n8n seems to do everything correctly. I then receives the data actually like that. Meaning you assume the data get sent like this:

{
  "body": {
    "contact": {
      "email": "test.com"
    }
  }
}

but apparently, does it get sent like this:

{
  "body": {
    "contact[email]": "test.com"
  }
}

and that is why n8n displays it that way. You can also confirm again by sending the request to a page like: https://webhook.site/

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.