JSONObject o = new JSONObject(request.getInputStream());
String flightId = o.getString("FlightId");
String approverId = o.getString("ApproverId");
String reason = o.getString("Reason");
MyFlights mf = MyFlights.getInstance();
mf.addMyFlight(flightId, userId, approverId, reason);
res.put("result", "success");
} else {
res.put("result", "notloggedin");
}