I am trying to receive and parse a JSON object sent in a POST request using Codeigniter but I cannot \"find\" it.
This is my controller code:
public
controller: puplic function exam(){ $obj = file_get_contents('php://input'); $edata = json_decode($obj); echo $edata->name; } Go to post man->type->post url:http://www.exam.com/exam formate:json { "name":"atm fahim" } ==>send