コード例 #1
0
 public JSONObject getJsonResponse() throws Exception {
   JSONObject json = new JSONObject();
   if (email == null || userSpace == null) {
     json.put("status", "error");
     json.put("error", "Usuari incorrecte");
   } else {
     json.put("status", status);
     if (status.equals("ok")) {
       json.put("project", prj.getJSON());
     } else if (err != null) {
       json.put("error", err);
     }
   }
   return json;
 }