get_incidents(true); }else{ $result = $constellation->get_incidents(); } echo json_encode($result); }