Advertisement
ballchaichana

jsonEX

Oct 24th, 2018
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.86 KB | None | 0 0
  1. //        JsonObject jObject = new JsonObject();
  2. //        HelpcheckDAO check  = new HelpcheckDAO();
  3. //        List<HelpcheckDB> listCheck = check.getList();
  4. //        
  5. //        try
  6. //        {
  7. //            JsonArray jArray = new JsonArray();
  8. //            for (HelpcheckDB healcheck : listCheck)
  9. //            {
  10. //                 JsonObject checkJSON = new JsonObject();
  11. //                 checkJSON.addProperty("status", healcheck.getStatus());
  12. //                 checkJSON.addProperty("timeNow", healcheck.getTimeNow().toString());
  13. //                 checkJSON.addProperty("timeUse", healcheck.getTimeUse());
  14. //                 jArray.add(checkJSON);
  15. //            }
  16. //            jObject.add("CheckList", jArray);
  17. //            response.setTest(jObject.toString());
  18. //        } catch (JsonIOException jse) {
  19. //            jse.printStackTrace();
  20. //        }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement