A working copy of a JSON fetch from the Google Calendar API.
#set ($RSTdate=$date.get('yyyy-MM-dd')) #set ($RSTdate=$RSTdate+"T05:00:00.000-04:00") #set ($usedate=$UtilMethods.encodeURL($RSTdate)) ##Need the date in RST3339 timestamp #set($myjson = $json.fetch("https://www.googleapis.com/calendar/v3/calendars/m.marywood.edu_f5qiptk2okvpe4m1mt43hmhegg%40group.calendar.google.com/events?maxResults=5&timeMin=${usedate}&key={redacted for security reasons-get your own API code}")) #foreach ($item in $myjson.get("items")) $item.get("summary") || $item.get("start")<br> #end