Advertisement
Guest User

Untitled

a guest
Mar 1st, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. {
  2. "attendees": [
  3. {
  4. "email": "x@gmail.com"
  5. },
  6. {
  7. "email": "y@techjini.com"
  8. }
  9. ],
  10. "start": {
  11. "dateTime": "2017-02-01"
  12. },
  13. "end": {
  14. "dateTime": "2017-02-01"
  15. }
  16. }
  17.  
  18. JSONObject jsobject = new JSONObject();
  19. JSONObject start = new JSONObject();
  20. JSONObject end = new JSONObject();
  21. start.put("dateTime", "2017-02-01");
  22. end.put("dateTime", "2017-02-01");
  23. JSONArray attendees = new JSONArray();
  24. JSONObject email = new JSONObject();
  25. JSONObject email1 = new JSONObject();
  26. attendees.put(0, email);
  27. attendees.put(1, email1);
  28. email.put("email", "x@gmail.com");
  29. email1.put("email", "y@gmail.com");
  30. jsobject.put("start", start);
  31. jsobject.put("end", end);
  32. jsobject.put("attendees", attendees);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement