Added JSON view for events.