fetch()) { $results[] = array('id' => $dao->id, 'text' => $dao->label); } echo json_encode($results); CRM_Utils_System::civiExit(); } }