eventTime = event.gd$when[0].startTime looks more correct.
This is not a JSON question, but a JavasSript question. In javascript
var t = ['one','next','last'];
defines an array of three elements that can be accessed using the construct t [0], t [1], t [2].
var x = { "startTime": "2006-11-15", "endTime": "2006-11-17", "gd$reminder": [{"minutes": "10"}] };
defines an x ββobject with the properties startTime, endTime and gd $ reminder. You cannot use "for the name of properties unless they have special characters. To access the value of the properties, use either the index conversion x [" startTime "] or the point conversion x.startTime. The x.startTime method is better and recommended.
So the answer to your question
eventTime = event.gd$when[0].startTime
source share