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
$post = json_decode($this->security->xss_clean($this->input->raw_input_stream));
When you use $this->input->raw_input_stream you can read it multiple times and its basically the same as file_get_contents('php://input'). This works on CI3. I don't know if it works on CI2.