getUsernames(); } catch (\Exception $e) { trigger_error($e->getMessage(), E_USER_WARNING); } } http_headers(array("Content-Type: application/json")); echo json_encode($result);