# Sending JSON from Campaign Webhook

**URL:** <https://forum.mautic.org/t/sending-json-from-campaign-webhook/19031>\
**Category:** Product Support\
**Created:** [April 15, 2021, 3:24pm UTC](https://forum.mautic.org/t/sending-json-from-campaign-webhook/19031 "2021-04-15T15:24:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmakar](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jmakar/32/2247_2.png) [@jmakar](https://forum.mautic.org/u/jmakar)\
**Post date:** [April 15, 2021, 3:24pm UTC](https://forum.mautic.org/t/sending-json-from-campaign-webhook/19031/1 "2021-04-15T15:24:23Z")

</div>

**Your software**  
My Mautic version is: 3.3.1  
My PHP version is: 7  
My Database type and version is: MySQL

**Your problem**  
My problem is:  
The release notes for 3.1 say that the issue I’m about to describe was addressed in bug fix #8959

> [@Mautic 3.1: New Beginnings](https://forum.mautic.org/t/mautic-3-1-new-beginnings/15787):
>
> The Mautic Community have today released [Mautic 3.1](https://github.com/mautic/mautic/releases/tag/3.1), the first feature-based update for Mautic 3. This release includes several features that have been contributed by individuals in the community and many that have been contributed by companies such as [Acquia](https://www.acquia.com),&nbsp;[Webmecanik](https://www.webmecanik.com),&nbsp;[Pepipost](https://pepipost.com/),&nbsp;[CTMobi](https://www.ctmobi.it/)&nbsp;and [Monogramm](https://www.monogramm.io/en/home/). The release was led by [Dennis Ameling](https://twitter.com/dennisameling). We thank every single contributor and organization that have been involved for their help and support with getting the release to this point. New feature…

> <https://github.com/mautic/mautic/pull/8959>
>
> \*\*Please be sure you are submitting this against the \_staging\_ branch.\*\*
> 
> \[//\]…: # ( Please answer the following questions: )
> 
> | Q | A
> | --- | ---
> | Bug fix? | Y
> | New feature? | N
> | Automated tests included? | Y
> | Related user documentation PR URL | https://docs.mautic.org/en/campaigns/campaign-events#send-a-webhook
> | Related developer documentation PR URL | 
> | Issues addressed (#s or URLs) | fixes #8375
> | BC breaks? | no
> | Deprecations? | no
> 
> \[//\]: # ( Note that all new features should have a related user and/or developer documentation PR in their respective repositories. )
> 
> \[//\]: # ( Required: )
> \#### Description:
> In a campaign, fix the "Send a Webhook" for services requiring a JSON Payload, by adding a conversion to JSON if the head 'content-type' is set to 'application/json'
> 
> \[//\]: # ( As applicable: )
> \#### Steps to reproduce the bug:
> 1. Cf #7869
> 2. 
> 
> \#### Steps to test this PR:
> 1. Load up \[this PR\](https://m3.mautibox.com)
> 2. Cf #7869
> 
> \#### List deprecations along with the new alternative:
> 1. 
> 2. 
> 
> \#### List backwards compatibility breaks:
> 1. 
> 2.

However, the bug page itself (listed above) has comments that seem to indicate this might not be included until Mautic 4. Can you say for certain if this is addressed in 3.3.1 or not?

The issue I am seeing is what is described in that bug. I create a webhook action in a campaign and set the content-type header to a value of application/json. I set the verb to POST. The body is still sent as if it were form type.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/61513918ccbf5d660a2346089f9e0ccab40627b2.png)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/e/e55be41667cbc5a40b01031df61d98eaa22156de.png)

These errors are showing in the log:

Steps I have tried to fix the problem:
