title: Post JSON to Codeigniter controller
body: <p>I am trying to receive and parse a JSON object sent in a POST request using Codeigniter but I cannot "find" it.</p>
  
  <p>This is my controller code:</p>
  
  <pre><code>public function parse () {
  
    $json = $this-&gt;input-&gt;post();
    $json = stripslashes($json);
    $json = json_decode($json);
  
    print_r($json);
  
  }
  </code></pre>
  
  <p>This is my JSON object:</p>
  
  <pre><code>{"data":"value"}
  </code></pre>