added getEventsJson