json をコントローラーに渡します。
$.post('xyz_controller/my_function', {url:"dummy data"},
function(data) {
alert("Success!");
}, 'json');
コントローラーの関数 (my_function) 内で、次のように受け取ります。
$received = $this->input->post('url');
echo json_encode($received);
残念ながら、$this->input->post('url')
私は間違っています。
どんな助けでも大歓迎です。