person_id; $start = $data->start; $end = $data->end; try { $id = $person_vacation->add($data_id, $person_id, $start, $end); } catch (Exception $e) { error_log($e->getMessage()); die(); } echo json_encode($id) ?>