handle(); } private function handle() { } function clean_input( $post ) { $value = $this->input->input_stream( $post, TRUE ); $denulledValue = str_replace( 'null', '', $value); return $denulledValue; } public function json($data) { echo json_encode($data); } }