Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "attendees": [
- {
- "email": "x@gmail.com"
- },
- {
- "email": "y@techjini.com"
- }
- ],
- "start": {
- "dateTime": "2017-02-01"
- },
- "end": {
- "dateTime": "2017-02-01"
- }
- }
- JSONObject jsobject = new JSONObject();
- JSONObject start = new JSONObject();
- JSONObject end = new JSONObject();
- start.put("dateTime", "2017-02-01");
- end.put("dateTime", "2017-02-01");
- JSONArray attendees = new JSONArray();
- JSONObject email = new JSONObject();
- JSONObject email1 = new JSONObject();
- attendees.put(0, email);
- attendees.put(1, email1);
- email.put("email", "x@gmail.com");
- email1.put("email", "y@gmail.com");
- jsobject.put("start", start);
- jsobject.put("end", end);
- jsobject.put("attendees", attendees);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement