<viennaos/net>
Home
CodeIgniter
codeigniter echo set content type
codeigniter echo set content type
$this->output->set_content_type('application/json')->set_output(json_encode($your_data));