I'm trying to collect my form data and to send is as json by curl to my server. I'm stuck constructing the JSON object. here is what I get for var_dump($_POST):
Array array(16) {
["id"]=> string(1) "5"
["lastMade"]=> string(19) "08-20-2015 21:00:17"
["integrationType"]=> string(11) "EMAILREPORT"
["active"]=> string(6) "active"
["tableName"]=> string(18) "affiliates_revenue"
["projectId"]=> string(6) "114133"
["description"]=> string(18) "affiliates_revenue"
...
}
When I call var_dump for var_dump(json_decode($_POST)):
NULL
I tried to use stripslashes() but it still returned NULL.
Thanks,