Home:ALL Converter>Unable to get data Posted by webhook in JSON String

Unable to get data Posted by webhook in JSON String

Ask Time:2014-01-06T19:40:36         Author:Dharampal

Json Formatter

I am using web hook for get user details from our company's signup page.

Data posted from signup page in JSON format. Posted JSON String is below

{"FirstName":"dharampal","EmailAddress":"[email protected]","Mobile":"123456789","Company":"Instasafe","LandingPageURL":"http://instasafe.com/SignUp","LandingPageId":"11e2-b071-123141050daa"}  

In receiving end, we are using PHP codeIgNiter, I tried below methods but unable to get data.

 $postedData = $_POST;
 print_r($postedData);

it gives : empty array

other method i tried is :

$postedData = json_decode(file_get_contents('php://input'), TRUE);

print_r($postedData);

it gives : NULL

Author:Dharampal,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/20949291/unable-to-get-data-posted-by-webhook-in-json-string
yy