how will I accept a json data
{
"ccToken": "75676576765",
"cardType": "CC",
}
which will be posted in my url and store the values in variables,like
$ccToken="756765676765" cardType="CC"
I may sound dump..Im just new to this,so I dont know how I will accept a json string posted on a url..Usually if its variables,I can accept it like,
$ccToken = $_POST['ccToken'];
but for this thing. and how will be able to sent a response like..200 in return?
application/jsonorapplication/x-www-form-urlencoded?