Update contents of eventsJson array instead of assignment