title: JSON.stringify() object not working in ajax call in Codeigniter
body: <pre><code>var dataString = JSON.stringify(formDara);
      console.log(dataString);
  $.ajax({
      url: urL,
      type: "POST",
      cache: false,
      data: dataString,
      success: function (data) {
          console.log(data);
      }
  });
  </code></pre>
  
  <p>Here, <code>formData</code> is an Object.
  console.log(dataString) OUTPUT:</p>
  
  <pre><code>{"library_fee":"100","lab_fee":"200","tution_fee":"300","admission_fee":"400"}
  </code></pre>
  
  <p>But my controller got no value.
  Codeigniter controller ACTION method:</p>
  
  <pre><code>public function set_fees_structure($id) {
      $data = array();
      $data["admission_fee"] = $this-&gt;input-&gt;post("admission_fee", TRUE);
      $data["tution_fee"] = $this-&gt;input-&gt;post("tution_fee", TRUE);
      $data["library_fee"] = $this-&gt;input-&gt;post("library_fee", TRUE);
      $data["lab_fee"] = $this-&gt;input-&gt;post("lab_fee", TRUE);
      echo 'I m set fees structures ' . $id;
      echo '&lt;pre&gt;';
      print_r($data);
      exit();
  }
  </code></pre>